See in development logs how many records your queries returns. It can help with solving performance issues.
Just add this gem in gemfile, start app and make first request.
Add this line to your application's Gemfile:
gem 'records_count', group: :development
And then execute:
$ bundle
Or install it yourself as:
$ gem install records_count
Contribution directions go here.
The gem is available as open source under the terms of the MIT License.