-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate too many sub query when use where conditional on navigation property. #101
Comments
I'm not sure what "_attendeeRepository.GetAll()" does and also please include your filter(s). |
GetAll Method
Filters
|
I am not able to reproduce this. And I don't see anything unusual about what you are doing. Is there any way you can distill this all down to a simple example and post the full code of that? Also, what database are you using? |
The source code is very simple, nothing special, I'm using mysql.
|
I reproduced the problem when using MySQL. It is being caused by these lines in DynamicFilterQueryVisitorCSpace.Visit(DbPropertyExpression expression)
That was needed when I first added support for navigation property filtering. At the time, I was testing with MySQL 5.5. I had to reload my machine recently so I installed the latest (5.7). So I'm wondering if it's a change in behavior from 5.5 -> 5.7. What version of MySQL are you using? |
Thanks for your investigation. |
@jcachat |
Sorry, I have not found a solution. Commenting out the lines I mentioned before causes some other unit tests to fail - even on MySQL 5.7. So I think it's more likely a difference in how the query is handled when it has the .Where() clause on it. It's definitely a difference (or possibly an issue) with how the MySQL EF provider works. |
I have the same issue, is there any plan to fix this? |
The text was updated successfully, but these errors were encountered: