@mogulman,
I have been using the Profiler for a while. It is quite telling... I have an app that provides a list of drawings based on search criteria. I limit results to 100 items, which is reasonable for the type of search that it does. I have a single lookup into a nested SQL View.
LookUp('[dbo].[VIEW_ALL_PDM_COMBINED_LATEST]',PartNumber=(MD_PartNumber),CurrentStatusID)
When I trigger the gallery to refresh that view... it generates over 23,000 lines of code!!! (Doing a copy from PRofiler, and paste into excel). I do not notice errors on the SQL side, but, it does take a long time too populate the gallery. The information it provides is important, but secondary to the search. So, the table populates, and the information from this lookup updates over the next 10 or so seconds.
Unfortunately, the SQL View has way too many lines to pull it into collect() first. It exceeds the delegation rule.
Before I even "run" the app in the editor, this command shows a server error.

What is strange, is that this command actually works without giveing erroneous results. No apparent SQL errors either.
I am wondering if there is some way to "mirror" sql tables to Azure, then do my lookups to the SQL table there. However, I would need Azure to update each time the parent SQL table changed, or something was added new. I had thought about getting a trial account going there, but I want everything lined up first, so I have it working long enough to give it a fair try.