Optimising DB queries: sub regions are eager loaded
This commit is contained in:
parent
18b1669715
commit
10c77b95ee
@ -1,4 +1,4 @@
|
|||||||
-# Choose a region to filter events with
|
-# Choose a region to filter events with
|
||||||
%nav.region_filter
|
%nav.region_filter
|
||||||
%ul= render partial: '/regions/filter_region',
|
%ul= render partial: '/regions/filter_region',
|
||||||
collection: Region.where(region: nil)
|
collection: Region.where(region: nil).includes(:regions)
|
||||||
|
Loading…
Reference in New Issue
Block a user