Level 104
No.
How expensive are the queries that you think this optimisation is necessary?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Just being curious, but is it possible to do one query, joining parent and grandparent tables, and create multiple model instances (child, parent and grandparent model) from the query result? It would save me 2 queries.
Please or to participate in this conversation.