jbuilder_cache_multi
jbuilder_cache_multi copied to clipboard
Sometimes queries can be very complex and populating models from queries with many includes take up the majority of time. After checking the cache, it is than obvious populating all...
I see there was a recent update to the core `jbuilder` gem (`v2.11.3`) which includes a change to... > Speed up collection rendering and add support for multifetch collection handling...
Right now I `includes` up to 6 realtions in my query, to avoid `n+1` queries. Building up this Object tree takes a lot of the time. Sometimes more that querying...
Recently updated items are placed at the end, despite the collection being ordered. So it seems as though recently updated partial fragments are rendered after the cached ones, ignoring the...
### Steps to reproduce ```rb item1 = Item.new(id: 1, name: 'Item1') item2 = Item.new(id: 2, name: 'Item2') item3 = Item.new(id: 3, name: 'Item3') items = [item1, item2, item1, item3] json.cache_collection!...