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.
显示
- .rubocop_todo/database/multiple_databases.yml 0 个添加, 1 个删除.rubocop_todo/database/multiple_databases.yml
- lib/gitlab/database.rb 10 个添加, 0 个删除lib/gitlab/database.rb
- lib/gitlab/import_export/group/relation_tree_restorer.rb 1 个添加, 1 个删除lib/gitlab/import_export/group/relation_tree_restorer.rb
- spec/lib/gitlab/database_spec.rb 40 个添加, 0 个删除spec/lib/gitlab/database_spec.rb
想要评论请 注册 或 登录