Need to display if a Asset field within a Matrix field has a file or not. While this works, the overhead is really high. Is there a way to write this with less overhead? Based on the EE template debug, here's the simplified snippet that causes the most lag:
{exp:channel:entries}
{exp:playa:parents}
{if '{matrixfield search:assetfield="not IS_EMPTY"}{row_id}{/matrixfield}'!=""}
I'm not blank!
{/if}
{/exp:playa:parents}
{/exp:channel:entries}
Using the search+row_id is most efficient way I've tested to write it, but it's still some 2k queries/8sec vs the 100/.xsec the site normally has. With the Asset in Matrix, in Playa, in Entries I would expect some additional processing time. Open to any ideas to try!