-
Notifications
You must be signed in to change notification settings - Fork 402
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
Performance hit from in
vs =
on indexed properties
#6668
Comments
I submitted a database dump and exact queries to Devon via Discord. I tested on postgres and confirmed that postgres will use the index with I can use |
+1 on this. Actually (on a bit different scenario), using an array literal, and an array_unpack around it uses the index:
Whereas:
|
I made a separate issue on this with a few numbers: #7027 |
Another similar example:
This will not hit that index. But if I slap |
Steps to Reproduce:
.thing
.thing in { option }
.thing = option
Using
edgedb analyze --expand
it shows the index is never used forin
but can be used for=
when the filter creates an appropriately small group.It seems that
in
is forcing the query planner to not account for indices on the property.The text was updated successfully, but these errors were encountered: