Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
There's a few things that could be happening. I recommend trying out https://github.com/dejan/rails_panel. It gives you a better break down if exactly what's taking time. You also might look at how long it takes to actually instantiate your models. The actual query time is usually the slowest operation, but if you have a bunch of models on the page just the classes being loaded can take a good amount of time
I’d use something like stackprof ( https://github.com/tmm1/stackprof ) to see where the time is going. If you already have suspicions you can use it to get information about a specific method / few lines of Ruby but there’s also a rack middleware.