Improve the inference of the primary_key
#165
Replies: 2 comments
-
Hello @curqui! Indeed I think it's a good idea to have a dedicated field for id inference without taking into account the position of the field in the sent payloads. Typically We could also generate this unique Selecting the first field containing |
Beta Was this translation helpful? Give feedback.
-
Locked in favor of #206 |
Beta Was this translation helpful? Give feedback.
-
Currently, to infer the primary_key, the core engine chooses the first attribute found in the first document that contains
id
as the primary key.Problem
A document with
region_id
first and thenid
in the same document could not be inferred correctly without specifying the primary key. Sinceid
is the unique identifier of a DB in most of the datasets, we might want to find a solution for this kind of dataset.Solution
An alternative could be to
id
exists and take it as primary_keyBeta Was this translation helpful? Give feedback.
All reactions