Optimising DB queries: sub regions are eager loaded

This commit is contained in:
echarp 2018-01-21 13:29:24 +01:00
parent 18b1669715
commit 10c77b95ee

View File

@ -1,4 +1,4 @@
-# Choose a region to filter events with
%nav.region_filter
%ul= render partial: '/regions/filter_region',
collection: Region.where(region: nil)
collection: Region.where(region: nil).includes(:regions)