Replies: 1 comment
-
Perhaps there was a bug in 1.0.0, but the query you showed shouldn't trigger this warning at least for the version |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is a copy of this StackOverflow question.
We are using JanusGraph (1.0.0) with a python fastAPI-based API, on kubernetes, to maintain and query our gremlin graph. Using gremlinpython, we periodically send this query for the sole purpose of checking the connection between API and DB server:
result = graph.inject(1).next()
, where graph is our graph traversal object.Our understanding is that this query is equivalent to sending something like SELECT 1; to a Postgres (other RDBMS exist) server. It creates a traversal with a single value, then collects that value.
When we issue this query, we get a warning from the JanusGraph server, like this:
10:18:49 WARN org.janusgraph.graphdb.transaction.StandardJanusGraphTx$3.execute - Query requires iterating over all vertices [[]]. For better performance, use indexes
Is our understanding wrong? Does this query actually iterate over our graph (which is not even referenced in this query)? Or is this warning a bug?
The problem we have with this warning is that we may well be committing this crime (not using indexes) elsewhere in the code, but there are so many spurious warnings that we will never be able to recognise a real one.
Beta Was this translation helpful? Give feedback.
All reactions