Ruby on Rails
Thursday, May 23, 2019
*It also tells you how long it took to render each view and the totals:
El jue., 23 may. 2019 a las 16:55, Ariel Juodziukynas (<arieljuod@gmail.com>) escribió:
Check the log, it tells you the time spent on each query to the database:User Load (1.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 201356 LIMIT 1Note that "1.0ms"It also tells you how log it took to render the each view and the totals:Rendered shared/_menu.html.slim (74.7ms)Rendered shared/_footer.html.slim (251.1ms)Rendered shared/_flash_modal.html.slim (2.7ms)Completed 200 OK in 48109ms (Views: 45777.0ms | ActiveRecord: 1670.4ms)You can also use gems like miniprofiler or bullet (for N+1 Queries) that shows you some of that information in a friendlier wayEl jue., 23 may. 2019 a las 16:03, tom (<tomabroad@gmail.com>) escribió:i have roughly 30 resources in routes, 10 scopes, a few nested resources. how can i find out what the problem is?--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMcMrB1ZLtn_v76RbW33vV1N-M%2B5Xypt3u1H-FBA342jDg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcDh5ZQxw%3DAUXvT42pFXGF1rauqk4Kb%2BXEmFaLFMbZ5geg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment