Rails – how to "generate" statistics from hundreds of thousands of data in PostgreSQL database?
I have a model Item with the corresponding database table items where is currently about 240,000 records. I need to generate statistics from the data in the items table on my dashboard. Currently, I am trying to do it this…