What are some common Rails performance gotchas? Just a tweet would be great, but links to blog posts, diagnostics, etc. would be awesome too
@sudara And you'd recommend find_each as a mitigation strategy or something else?
-
-
@wycats Just as often it's an odd biz need. Like there needs to be 7000 rows returned for some reason, someone has decided. -
@sudara Hm... so what's the advice for fixing it? -
@wycats Social engineering and caching :) Re-evaluating "what do we want to accomplish here" and rewriting often does the trick on its own.
End of conversation
New conversation -
-
-
@wycats 1) Watching the logs 2) proper use of .includes 3) using .pluck 4) caching 5) not using ruby to "filter" AR results (select, etc)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.