We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We have code like this:
var values = data.ToArray(); // [1,2,3] var res = DbSet<Call>.Where(x => values.Contains(x.Id));
and efcore.pg 3.1 generating sql like this:
select * from calls where COALESCE(id = ANY ([1,2,3]), FALSE))
plus sometimes
and array_position(....) is null
Because of COALESCE, pg running fullscan without using id index. We have around 400 mil rows in partitioned Call table.
In efcore.pg 3.0 when there was IN clause pg was using indexes and all was fine.
The text was updated successfully, but these errors were encountered:
found in #1152
Sorry, something went wrong.
No branches or pull requests
We have code like this:
and efcore.pg 3.1 generating sql like this:
plus sometimes
Because of COALESCE, pg running fullscan without using id index.
We have around 400 mil rows in partitioned Call table.
In efcore.pg 3.0 when there was IN clause pg was using indexes and all was fine.
The text was updated successfully, but these errors were encountered: