5 ms·
Here's few other ways to optimize your rails application (with the description taken from the doc) : - https://github.com/flyerhzm/bullet/ https://github.com/f
by mickeyben 16y ago
Here's few other ways to optimize your rails application (with the description taken from the doc) :
- https://github.com/flyerhzm/bullet/ https://github.com/flyerhzm/bullet/ : The Bullet plugin/gem is designed to help you increase your application’s performance by reducing the number of queries it makes. It will watch your queries while you develop your application and notify you when you should add eager loading (N+1 queries), when you’re using eager loading that isn’t necessary and when you should use counter cache.
- https://github.com/sdsykes/slim_scrooge/ https://github.com/sdsykes/slim_scrooge/ : SlimScrooge implements inline query optimisation, automatically restricting the columns fetched based on what was used during previous passes through the same part of your code.
- http://guides.rubyonrails.org/caching_with_rails.html http://guides.rubyonrails.org/caching_with_rails.html : Caching With Rails from the awesome rails guides
- http://guides.rubyonrails.org/performance_testing.html http://guides.rubyonrails.org/performance_testing.html : Performance Testing Rails Applications from the rails guides
- robflynn 16y agoBullet is nice, but I do occasionally have an experience where it will yell at me about unused eager loading associations when they're not actually unused. I suppose I could dig into the bullet code a bit, but I've been too busy. Has this come up for you before?
- mickeyben 16y agoI had the same error from time to time, but it seems resolved : https://github.com/flyerhzm/bullet/issues/closed#issue/20 https://github.com/flyerhzm/bullet/issues/closed#issue/20 You should open a ticket, eventually write a spec to reproduce.
- robflynn 16y agoI'll do another code review and make certain that I'm not crazy and just missing something, then I'll send a spec his way.