So how graph is maintained ? Is there any document...
# spicedb
s
So how graph is maintained ? Is there any document to read for it, I am just trying to understand
j
how is the data stored?
s
I can see Postgresql tables and data stored in it, I am trying to understand where the graph data stored which is traversed to compute permission checks.
j
the graph structure is stored in the namespace table
s
Got it, thanks for sharing, as dispatcher sends smaller query on different node to traverse the graph, I made assumption , graphs are maintained in memory.
j
the structure is cached in memory
s
I see, I guess only part of structure can be cached, as in many cases structure can be big enough to fit in size of memory.
Which node has which piece of graph cached, it is maintained though consistent hashing ?
j
more or less
everything is loaded by namespace
which means a namespace can be on multiple nodes