You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @gpks ! please go ahead. Keep in mind that the app has changed considerably recently so make sure you check the N+1 still exists first. Sorry for any inconvenience.
The line below is responsible for a N+1:
timeoverflow/app/views/shared/_post.html.erb
Line 34 in 94a4ad8
Due to:
timeoverflow/app/models/post.rb
Lines 122 to 124 in 94a4ad8
That method is going introduce N+1 every time is used, as it is very likely that is going to be used as part of a larger query.
We should rely on eager loading the
members
association when needed instead.The text was updated successfully, but these errors were encountered: