You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by "kenwoon (via GitHub)" <gi...@apache.org> on 2023/05/01 01:37:36 UTC

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

kenwoon commented on issue #852:
URL: https://github.com/apache/age/issues/852#issuecomment-1529236152

   I have found information from the official [master documentation](https://age.apache.org/age-manual/master/intro/types.html#graphid) as follows:
   
   > An entity is assigned a set of properties, each of which are uniquely identified in the set by the irrespective property keys. Simple entities are assigned a unique `graphid`. A `graphid` is a unique composition of the entity’s label id and a unique sequence assigned to each label.
   
   From what I can find,  `graphid`s are mainly referenced from the 'graphid.c' file, which is likely responsible for the creation of GRAPHID Oids. The function `make_graphid()` takes in the `label_id` and `entry_id` generated by the `PG_GETARG_INT32()` and `PG_GETARG_INT64()` functions, defined in the `graphid.h` header file.


-- 
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