-
Notifications
You must be signed in to change notification settings - Fork 56
dbContext.DBSet.FirstOrDefault(e => e.FirstName == "xx") missing filter in MongoQueryable #32
Comments
@crhairr, Can you reproduce this issue? |
I'm still working on the sub-document update issue. I did some preliminary tests and my local logs show queries going through. |
If your tests are OK, please provide the code or commit to the repo so that I can verify it on my computer. Thanks! |
I've been working on a substantial re-write of the metadata tracking system. In the process, I think I may have found part of the issue which is that certain layers of the EF Core query system result in overriding the underlying query provider a basic enumerating provider. I've seen where in some cases, the entire query can be detached from the underlying provider, resulting in enumerating the entire collection from the DB and filtering in-memory on the client. I've started some changes to address this. I need to finish the current set of changes, and then I can work on things like being able to log the effective query and testing that the correct query goes to the server. |
After I finally dealt with the issues that were wrong with the owned/complex EntityType models, I got started on this and found that I have to rewrite a substantial amount of the query processing code in order to get Includes to work correctly and to work around navigation injections for owned documents. I have a branch where everything but the includes are working, but I'm still working on getting the Include compiler finalized. |
zooDbContext.Employees .FirstOrDefault(e => e.FirstName == "xx") will retrieve all records from employees collection in mongodb.
Reproduce step:
From the profiler data, we can see there is no filter or pipeline in the command.
`
}
`
The text was updated successfully, but these errors were encountered: