You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This creates problems for schema branching and field removal.
For example, if two different fields are added in different schema branches, they will have the same ID (as the number of other fields is the same). This means that data saved in documents on the two branches will share the same space/datastore-keys and do weird stuff.
WARNING: This cannot be solved simply by using a sequence for the IDs at the moment, as the ID field (local concept) is current held on the schema (global). The fact that other fields have been added on different schema branches (incrementing the sequence) must not impact the schema version ids (via the field id).
The text was updated successfully, but these errors were encountered:
## Relevant issue(s)
Resolves#2334
## Description
Moves field id off of schema and onto collection.
It is now a local property and does not need to be the same across
multiple nodes. The new `Fields` property on `CollectionDescription`
will be where other local field stuff is move too from the schema
(relation_name, descriptions, secondary relation fields).
This change is a prerequisite of allowing fields to be deleted and
schema branching (see
#2333 for more info on
that if currious)
## Relevant issue(s)
Resolves#2333
## Description
Generates field ids using a sequence instead of their index in the
array.
This is required for allowing field deletion and schema branching as
otherwise those two will alter the position and thus id of fields. For
example, previously if two schema branches were to add a new field each,
the new fields would share the same id and mess the datastore cache up
in interesting ways.
This creates problems for schema branching and field removal.
For example, if two different fields are added in different schema branches, they will have the same ID (as the number of other fields is the same). This means that data saved in documents on the two branches will share the same space/datastore-keys and do weird stuff.
WARNING: This cannot be solved simply by using a sequence for the IDs at the moment, as the ID field (local concept) is current held on the schema (global). The fact that other fields have been added on different schema branches (incrementing the sequence) must not impact the schema version ids (via the field id).
The text was updated successfully, but these errors were encountered: