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
I also noticed that the selector is being applied after the results are
coming back from the server so we aren't getting the benefit of
returning less data over the wire. We need to fix this in general but
it will take a few changes and should be done on the other branch. So
I'll add that as an issue on the Wiki on github.
// TODO: change to IQueryable<T> so that we can use it from the calls with a selector like GetAll(x => x.Name), right now it is bringing back the entire object and then doing the Select using Linq to Objects
45
46
protectedoverrideIEnumerable<T>GetAllQuery()
46
47
{
48
+
// return BaseQuery(); // we should be doing this so that it can stay a query and not pull into memory for the GetAllQuery with the selector param to use as well
// TODO: change to IQueryable<T> so that we can use it from the calls with a selector like GetAll(x => x.Name), right now it is bringing back the entire object and then doing the Select using Linq to Objects
// TODO: change to GetAllQuery which should be IQueryable<> so that the selector is done on the server side instead of inmemory with the resulting objects
// changed from .Count() to this to actually get the results and not just the Count of the query which won't necessarily use the selector at all and might do it all server side
0 commit comments