Bulk Import -- Relationship Mapping
Bulk Import supports full relationship mapping across all relation types.
Relationships are resolved using relation API names and standard identifier resolution rules.
One-to-One and One-to-Many
Foreign keys are represented directly in the target table using the relation API name.
<relation>→ resolves usingid_<relation>→ resolves using_id
Resolution rules:
- If both are present,
idtakes precedence - If only
_idis present, lookup is performed using_id - If neither is present, the relation is left unchanged on
UPDATE
Many-to-One
Handled identically to one-to-many from the target side:
- The foreign key is stored on the many-side table
- Resolution follows the same
<relation>/_<relation>rules
Many-to-Many
Many-to-many relations are imported using dedicated link tables.
File Naming
<source-table>-<relation>.csv
Required Columns
_operationsource_sourcetarget_target
Semantics
INSERT→ creates a relationDELETE→ removes a relationUPDATEis not permitted
Each row represents exactly one relation edge.
Resolution Characteristics
- Relation resolution is non-transactional across files
- Ordering between files is not guaranteed
- Failed links do not block unrelated row inserts