Duplicate queries
Hello,
How can I get rid of duplicate queries? For example I have this query:
In reality each record has the same brand_id and this query should be executed once. However I have the feeling it gets called on each rows. Is there a way to have this only executed once?
How can I get rid of duplicate queries? For example I have this query:
In reality each record has the same brand_id and this query should be executed once. However I have the feeling it gets called on each rows. Is there a way to have this only executed once?