-
Notifications
You must be signed in to change notification settings - Fork 409
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
Creating Index on nodes property #920
Comments
I think by using create index clause on the property 'roll' of node 'person' you can achieve your target.
Above statement will create index on roll property of person node. |
To create the index you can use this commad as mentioned by Talha
With the index in place, this query should run faster than a similar query without the index. |
To create an index on the "roll" property of the "Person" node, you can use the following Cypher query:
If you want to retrieve data based on this index, you can use this command This query uses the index on the "roll" property of the "Person" node to quickly find all nodes where the "roll" property is equal to 10. |
Kindly have a look at this issue as it has alot of examples on creating uniques indexes: #45 |
Yes, It is possible to create an index on properties of nodes/edges in Apache AGE. Try using the following Cypher query:
This will create an index on the "roll" property of the "Person" nodes. And for using the created index for faster query For example, to find all the "Person" nodes with "roll" property value of 25 using the index, try using following query.
In this query, the I hope this helps you. |
I've tried the suggestions but none of them worked. From the following input:
I get an error that says |
You can use the following command to create GIN indices:
This GIN indices normally improves WHERE clause performance. Here is an example:
|
@WendelLana After that how you will delete the index ? |
@Munmud You have to provide the graph name, so use this command: |
Thank you @WendelLana |
Is there any way to create index on property of nodes/edges ? If so how to add an index. For example i have created nodes as below
Now I want to create index on property
roll
how to do that ?How to use the created index for faster query ?
The text was updated successfully, but these errors were encountered: