How are the uids being creating ? where is the code?

Blank nodes in mutations, written _:identifier, identify nodes within a mutation. Dgraph creates a UID identifying each blank node and returns the created UIDs as the mutation result.
How the Uids been created , if i have a cluster different node will conflict during create Uids? so the uid assign is related to different cluster node ?

another question what’s the key like stored int the Badger , can some one give me a demo to show the struct of key in the Badger , if you can give me a value stored in Badger that will be better

You can find here - https://github.com/dgraph-io/dgraph/search?l=Go&q=uid&type= how is UID created or processed in dgraph.

Read More here.- https://dgraph.io

Your all questions are already answered there.

of course , every thing is in the source code

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.