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
{{ message }}
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
I was tinkering with building an EntitySource implementation, and as I was trying to build out the Filter, GroupBy, and Iterate functions, and I realized I always needed to List into memory and then iterate to support these other functions because the backend in my case had no iterator/cursor sort of API.
I wonder if we should relax the base EntitySource API to be justGet and List, and then have an additive interface that callers can type check, to see if the more performant methods could be delegated to the entity source.
If so, call the entity source's methods
If not, List(), and then do the filtering, grouping, iterating at the call site.
I was tinkering with building an EntitySource implementation, and as I was trying to build out the
Filter,GroupBy, andIteratefunctions, and I realized I always needed toListinto memory and then iterate to support these other functions because the backend in my case had no iterator/cursor sort of API.I wonder if we should relax the base
EntitySourceAPI to be justGetandList, and then have an additive interface that callers can type check, to see if the more performant methods could be delegated to the entity source.List(), and then do the filtering, grouping, iterating at the call site.