You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by "Zainab-Saad (via GitHub)" <gi...@apache.org> on 2023/04/26 07:41:02 UTC

[GitHub] [age] Zainab-Saad commented on issue #852: Which Tech/Algorithm is used to generate id automatically when creating new nodes and edges ?

Zainab-Saad commented on issue #852:
URL: https://github.com/apache/age/issues/852#issuecomment-1522934924

   The 16 digit ID of nodes and edges is generated by applying certain masking algorithm on the ID of label associated with that node/edge. Since the labels are actually tables that store the nodes/edges associated to them in that table and the ID of these tables are generated by a sequence (you can find the ID of a label table using `SELECT * FROM ag_label` --> This outputs a column named id that is basically the label ID I am talking about.) 
   In order to actually see how the IDs are given to nodes/edges, debug a simple CREATE statement with breakpoints on 
   
   1. create_vertex
   2. ExecEvalExpr
   
   This will give you a more clear picture
   Hope it helps!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org