Timeline for How to speed up a single entry page with Eager Loading
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 14, 2018 at 17:15 | vote | accept | Paul Frost | ||
Aug 14, 2018 at 13:47 | comment | added | Robin Schambach |
Just as an additional note besides @mats great answer. The count() function executes the query and counts the results, imageGallery[0] is a deprecated way to execute the query and you'll finally execute it a 3rd time with .offset(1).all() . So you execute 2 useless queries that could be avoided
|
|
Aug 14, 2018 at 11:12 | answer | added | Mats Mikkel Rummelhoff | timeline score: 4 | |
Aug 14, 2018 at 10:00 | history | asked | Paul Frost | CC BY-SA 4.0 |