Hi everyone! I've noticed a recurring problem with listbuilder performance. I will often have sql queries which will run instantly in SSMS directly against the database. However, once I put the sql into a TVFImplementation of a QueryViewSpec, the performance degrades terribly. The results can go from finishing in less than 1 second, to taking 3 or more minutes to complete.
I'm presuming this is because the spec creates a table-valued function, since when I select directly from the TVF in SSMS, I get the same poor performance as I see in CRM itself.
I'm curious if others encounter this same issue, and if there is anything that may help. TVFs have very limited coding options as compared to a stored proc (like datalists use).
Thanks in advance!