1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/relation
eileencodes dbb92f8a77
Add strict_loading mode to prevent lazy loading
Add `#strict_loading` to any record to prevent lazy loading of associations.
`strict_loading` will cascade down from the parent record to all the
associations to help you catch any places where you may want to use
`preload` instead of lazy loading. This is useful for preventing N+1's.

Co-authored-by: Aaron Patterson <aaron.patterson@gmail.com>
2020-02-20 08:32:48 -05:00
..
delegation_test.rb Add missing touch_all delegation to relation 2019-04-05 16:13:40 +09:00
delete_all_test.rb Revert unused code and re-using query annotation for update_all and delete_all 2019-04-01 15:04:11 +09:00
merging_test.rb Add Relation#annotate for SQL commenting 2019-03-21 20:30:56 -07:00
mutation_test.rb Add strict_loading mode to prevent lazy loading 2020-02-20 08:32:48 -05:00
or_test.rb Allow or in case of from clause with same value 2020-01-04 20:32:51 +09:00
predicate_builder_test.rb Registered predicate handler should be used for association queries 2020-02-12 17:09:20 +09:00
record_fetch_warning_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
select_test.rb Retain selections with includes and joins 2019-12-03 20:45:12 -05:00
update_all_test.rb Remove tests that limit/offset without order which is non-deterministic result 2019-10-18 04:21:51 +09:00
where_chain_test.rb Introducing the where.missing query method. 2020-01-11 09:14:25 -05:00
where_clause_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
where_test.rb Fix grammar and diction of NOR conditions warning message 2020-02-06 13:24:05 -08:00