Use _ID as primary key? #4444
-
Is there a way to use the autogenerated _ID as the primary key for entities? |
Beta Was this translation helpful? Give feedback.
Answered by
semihsalihoglu-uw
Oct 29, 2024
Replies: 1 comment 7 replies
-
Hi @dgllghr, It's not recommended to use |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I see. So in short, we do need a primary key to be defined somehow to identify the nodes. We might consider having a shortcut that uses a default PK for nodes, i.e., if PK is not defined in the node table schema definition, we add a default SERIAL "ID" or "{tablename}_ID" column, but it would still be visible to you. So not sure what to recommend for now. We would need a longer discussion if having the internal _ID as a default PK if PK is not defined but having PK for node tables is a core assumption in the system, so I'm not very optimistic it would be easy to drop this assumption. We would need to evaluate its feasibility.
For Kuzu looking relational: Great to hear! We are quite open a…