Skip to content
Discussion options

You must be logged in to vote

In your case you created an index, but didn't enable it. JanusGraph won't use your index unless you explicitly enable it. Moreover, your queries are not referencing indexed properties.

In your case after you created the index:

if (!janusGraphManagement.containsGraphIndex("_id"))
  janusGraphManagement.buildIndex("_idIndex", Vertex.class).addKey(propertyKey).buildCompositeIndex();
janusGraphManagement.commit();

You should await and enable it (and potentially re-index you current data):

ManagementSystem.awaitGraphIndexStatus(graph, "_id").call()
janusGraphManagement = janusGraph.openManagement();
janusGraphManagement.updateIndex(janusGraphManagement.getGraphIndex("_id"), SchemaAction.REIND…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by porunov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants