Skip to content

Use _ID as primary key? #4444

Closed Answered by semihsalihoglu-uw
dgllghr asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@semihsalihoglu-uw
Comment options

@andyfengHKU
Comment options

@dgllghr
Comment options

@semihsalihoglu-uw
Comment options

Answer selected by dgllghr
@dgllghr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants