-
Notifications
You must be signed in to change notification settings - Fork 834
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
Index not used if attribute has space in the name #20712
Comments
@DougGarno55 : I just tried exactly what you wrote above above using 3.11, and for me the indexes are indeed used.
Insert data:
Create indexes:
Explain query:
As you can see, the explain plan shows that the indexes are indeed used. So I guess you will have used a different way to create indexes on |
@DougGarno55 : what immediately comes to my mind is that in your screenshot example, you have enclosed the attribute name ("Project ID") in extra double quotes. |
AH, that now works, here is the explain output:
I was under the impression that we have to quote the attribute name if it has spaces. |
Closing as solved. |
My Environment
Component, Query & Data
Data is simple two collections with two attributes with spaces in the names.
See steps to reproduce below.
Affected feature:
AQL query execution time
AQL query (if applicable):
AQL explain and/or profile (if applicable):
Steps to reproduce
Problem:
Indexes are not used
Expected result:
Use of index
If the attribute name is Project_ID, then the index are used.
The text was updated successfully, but these errors were encountered: