Venky
Venky

Reputation: 406

Layout of Janusgraph backend tables

I am using JanusGraph with Cassandra as its storage backend. Its a fairly large graph with over 70 million vertices. What is the best way to get a list of all the vertex IDs. The query g.V() will take a long time to return. Is there a way I can pull out this data (all vertex IDs and if possible all edge IDs) directly from the Cassandra tables. I couldn't figure out how the data is stored. Can anybody help me please, or is there any clear documentation on how data is laid out in the backend tables.

Upvotes: 2

Views: 537

Answers (1)

Kelvin Lawrence
Kelvin Lawrence

Reputation: 14371

The way JanusGraph data is stored in Cassandra is documented at https://docs.janusgraph.org/advanced-topics/data-model/ but if you use CQL or Nodetool to look at the tables created you will see the data is stored as blobs. I think the only way to get IDs is using Gremlin.

Upvotes: 2

Related Questions