23.12.4 Get Cached Graphs
The server state contains also cached graph information serverState.get("cached_graphs")
which returns a collection of graphs cached in memory. Each entry contains information about a graph as shown:
{
"name":"sf-1589317879394",
"creation_timestamp":1589317879394,
"vertex_properties":[
{
"loaded":true,
"mem_size_bytes":478504,
"name":"prop1",
"type":"double"
}
],
"edge_properties":[
{
"loaded":true,
"mem_size_bytes":1197720,
"name":"cost",
"type":"double"
},
{
"loaded":true,
"mem_size_bytes":598860,
"name":"0",
"type":"integer"
}
],
"memory":{
"topology_bytes":3921814,
"key_mapping_bytes":1407466,
"property_mem_bytes":2275084
},
"vertices_num":59813,
"edges_num":149715
}
The following table explains graph information fields:
Table 23-7 Graph Information
Field | Description |
---|---|
name |
Name of the graph. |
creation_timestamp |
Creation timestamp of the graph. |
vertex_properties |
List of vertex properties, each entry contains the name, type, memory size used by the property, and a boolean flag to indicate if the property is loaded into memory. |
edge_properties |
List of edges properties, similar to vertex properties. |
memory |
Memory size used by the whole graph (topology, key mappings and properties). |
vertices_num |
Number of vertices. |
edges_num |
Number of edges. |
Parent topic: Admin API