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
I'm using this gem, very helpful, but noticed that it executes the queries for every request rails receives, which means an extra DB query for every request.
I think it could be made so that it only executes when a 404 is found (no route matches), and then, and only then look for a redirect rule, this would reduce the number unnecessary of DB queries.
I'm not in a position to code this, I'm just learning Ruby, Rails and Rack work.
The text was updated successfully, but these errors were encountered:
I'm using this gem, very helpful, but noticed that it executes the queries for every request rails receives, which means an extra DB query for every request.
I think it could be made so that it only executes when a 404 is found (no route matches), and then, and only then look for a redirect rule, this would reduce the number unnecessary of DB queries.
I'm not in a position to code this, I'm just learning Ruby, Rails and Rack work.
The text was updated successfully, but these errors were encountered: