You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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