Janusgraph not picking up Index during lookup. #2992
Replies: 4 comments
-
Your printed schema says that the byDocId index has status INSTALLED. Please check https://docs.janusgraph.org/schema/index-management/index-lifecycle/ and see if that helps. |
Beta Was this translation helpful? Give feedback.
-
Thanks @vtslab .. The lifecycle helped me. Apparently there was some problem in which the index was not getting enabled. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
You can probably find inspiration for improvement at: |
Beta Was this translation helpful? Give feedback.
-
Hi ,
Below is my Schema Model
I have created one composite index as well on docId and inserted some 100 records of vertex Segment Type
Query : g.V().has('docId','1d5bdb14-09a1-4259-a448-b8fc59ce14d0')
This prints the correct results, but in the janusgraph logs I see a warning that query is scanning all vertices, use Index.
Seems like my index is not getting picked up.
The profile command shows it is doing full scan and not using the index.
I am using cassandra as storage backend. Is there anything that I am missing. In the Schema screenshot attached , I see the index as installed.
Beta Was this translation helpful? Give feedback.
All reactions