Friday, February 21, 2025

Real Time data validation on Tigergraph DB

Usually, command "gstatusgraph" provided vertex and edge count but this is not real time.

To get real time count, we should use the REST API endpoint with parameter "realtime"

Documentation: https://docs.tigergraph.com/tigergraph-server/4.1/api/built-in-endpoints#_graphs

Functions to use are: stat_vertex_number & stat_edge_number

Example: curl -X POST "http://localhost:14240/restpp/builtins/socialNet" -d  '{"function":"stat_vertex_number","type":"*"}' | jq .


***

No comments:

Post a Comment