Closed AfolabiOlaoluwa closed 5 years ago
I believe that it is due to rendering. Rendering in rails is generally slow, but it is optimized in production env. Try launch your app in the production mode and see if there is any difference.
It's way worse in Production. Literarily waiting for more than 3 mins for 1 million records to show/load
Indexes are not fully supported for the LIKE operation especially with downcase
. Your requests to scan 1m records with LIKE
will be unavoidably slow: https://stackoverflow.com/questions/11418932/performance-of-like-queries-on-multmillion-row-tables-mysql
Please attach the log from your production request so that we can say for sure what is slow.
Closing by inactivity. Please follow up if still actual.
Controller
account_grid.rb
Account Table is just 1,000 records on local system
Member Table is just 100 records on local system
Versions Table is just 380 0n local system
Total time for the log Views: 412.6ms | ActiveRecord: 16.7ms
Logs