Default Sort Order in Gremlin Query

Is there any Default sort order in Gremlin Query if we do not provide any explicit order? Whenever I ran Gremlin query multiple times, it gives the results in some random order, just need understand how this order is defined internally? I am using Janusgraph with remote gremlin servers
2 Replies
spmallette
spmallette14mo ago
sorry - we somehow missed this question. Gremlin does not enforce any order, mostly because most graphs don't offer order guarantees. If you need a particular order then you should use the order() step explicitly.
Akhan
Akhan14mo ago
Thanks for the clarification, really appreciate your help
Want results from more Discord servers?
Add your server
More Posts
Why does properties().dedup() return duplicates?When I run the query V().both().properties().dedup() on the TinkerFactory modern graph, I see duplicIs is ok to generate GraphTraversalSource on demand by using TinkerVertex.getGraph().traversal() ?Is is ok to generate GraphTraversalSource on demand by using TinkerVertex.getGraph().traversal() ? How to to get total count for pagination with gremlin query using java Apache thinker popI need to implement pagination in my application. I'm unable to get the total count. can someone helIncomplete questionsIn the interest of keeping #questions easy to scan through for unanswered questions, I have it in myNeed help to implement a generic gremlin query with Apache thinkerPop Java.Hi Everyone, From the UI I will get one DSL query, I'm converting that into a Gremlin query. and IEdge TTL not working for Janusgraph with BigtableI'm creating edges with TTL of 30 seconds but I can see those edges aren't getting deleted. I'm using.V(1).property() on 1 item fails in 1.18.49It seems 'anything property' on single item fails in gdotv 1.18.49: g.V(1).properties() -> [] g.V(1)Setup and Configuration of SPARQL-Gremlin plugin (with ArcadeDB)Dear All, I would like to use the SPARQL-Gremlin ( https://tinkerpop.apache.org/docs/current/refereTTL in nonstatic vertex labels JanusgraphI wanted to set a TTL in some vertices but I don't want those vertices to be static. How can I impleTemporal VersioningI am exploring graph data models which support time travel ie. retaining old versions of documents a