You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
robertmclaws
changed the title
return query results into stream without loading into memory
Optimize QueryExecutor results to delay materialization
Dec 17, 2018
So, it appears that all QueryExecutors will execute their queries in-memory at some point during the process. This is a relatively standard pattern, even in WebAPI proper (return query.ToList() happens all the time).
So the question becomes, it is possible to delay materialization of the query until it is later in the pipeline. .NET Core has done so much work to optimize for performance, I'll have to see what we can do.
in
DefaultQueryExecutor.ExecuteQueryAsync
there's a call toquery.ToList()
that loads all results into memoryThe text was updated successfully, but these errors were encountered: