Sunday, September 29, 2024

Correlating Graph ID's with Graph name in Tigergraph DB

config.yaml is the main file in Tigergraph DB where, all details regarding Graph, vertex, edges reside and is consistent across all nodes.


$ view $(gadmin config get System.DataRoot)/gstore/0/part/config.yaml


In above file all will have ID's and its hard to correlate with corresponding names.

So, check in latest catalog.


$ grun_p all "ls -l $(gadmin config get System.DataRoot)/gsql/backup"


Now, copy latest catalog to some temporary location and unzip.


GraphCatalog.yaml has Graph name corresponding to Graph ID

VertexCatalog.yaml has Vertex name corresponding to Vertex ID

EdgeCatalog.yaml has Edge name corresponding to Edge ID


***

No comments:

Post a Comment