Skip to content

Commit e055ad9

Browse files
Victor LeeVictor Lee
Victor Lee
authored and
Victor Lee
committed
DOC-1906-warning-empty-primary-id 3.7
1 parent 9e5f329 commit e055ad9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

modules/ddl-and-loading/pages/defining-a-graph-schema.adoc

+6
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ If you have a single attribute which serves as your primary key, use the `PRIMAR
8787
This gives you the flexibility of option 2 with the GraphStudio compatibility of option 1.
8888
====
8989

90+
[IMPORTANT]
91+
====
92+
When loading or inserting vertices, take care not to accidentally leave the primary ID field empty.
93+
An empty string in the primary ID field is accepted as a valid input.
94+
====
95+
9096
Regardless of which option is selected, GSQL automatically creates a hash index of the key for fast O(1) searches.
9197

9298
The syntax for the three options are summarized below.

modules/ddl-and-loading/partials/load-statement.adoc

+6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ If the vertex data is loaded later, it will be automatically merged with the aut
6464
The user can disable this feature and perform regular referential integrity checking by setting the `VERTEX_MUST_EXIST` option to `true`.
6565
====
6666

67+
[IMPORTANT]
68+
====
69+
Take care that your data sources do not have unintentional empty fields.
70+
An empty string in the primary ID field is accepted as a valid input.
71+
====
72+
6773
=== Examples
6874

6975
Suppose we have the following vertex and edge types:

0 commit comments

Comments
 (0)