Implement uncached behavior for multiple databases
Add a Gitlab::Database.all_uncached method which implements ActiveRecord::Base.uncached behavior that works with multiple databases. The new method wraps the given block in an #uncached call for each base model, so that the behavior will be correct on any database connection.
Showing
Please register or sign in to comment