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
Copy file name to clipboardExpand all lines: content/integrate/redis-data-integration/data-pipelines/data-denormalization.md
+6-7Lines changed: 6 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -73,8 +73,8 @@ output:
73
73
# server_name: chinook
74
74
# schema: public
75
75
table: Invoice
76
-
nesting_key: InvoiceLineId #cannot be composite
77
-
parent_key: InvoiceId# cannot be composite
76
+
nesting_key: InvoiceLineId #the unique key in the composite structure under which the child data will be stored
77
+
parent_key: InvoiceId
78
78
child_key: InvoiceId # optional, if different from parent_key
79
79
path: $.InvoiceLineItems # path must start from document root ($)
80
80
structure: map # only map supported for now
@@ -91,10 +91,9 @@ The job must include the following attributes in the `nest` block:
91
91
`schema`attributes. Note that this attribute refers to a Redis *key* that will be added to the target
92
92
database, not to a table you can access from the pipeline. See [Using nesting](#using-nesting) below
93
93
for the format of the key that is generated.
94
-
- `nesting_key`: The field of the child entity that stores the unique ID (primary key) of the child entity.
95
-
- `parent_key`: The field in the parent entity that stores the unique ID (foreign key) of the parent entity.
96
-
- `child_key`: The field in the child entity that stores the unique ID (foreign key) of the parent entity.
97
-
You only need to add this attribute if the name of the child's foreign key field is different from the parent's.
94
+
- `nesting_key`: The unique key of each child entry in the json map that will be created under the path.
95
+
- `parent_key`: The field in the parent entity that stores the unique ID (foreign key) of the parent entity. Can not be composite key.
96
+
- `child_key`: The field in the child entity that stores the unique ID (foreign key) to the parent entity. You only need to add this attribute if the name of the child's foreign key field is different from the parent's. Can not be composite key.
98
97
- `path`: The [JSONPath](https://goessner.net/articles/JsonPath/)
99
98
for the map where you want to store the child entities. The path must start with the `$` character, which denotes
100
99
the document root.
@@ -135,4 +134,4 @@ There are several important things to note when you use nesting:
- Changing the foreign key value of a child object results in the child object being added to the new parent, but the old parent is not updated.
137
+
- Changing the foreign key value of a child object results in the child object being added to the new parent, but the old parent is not updated. This is a known limitation of the current implementation and is a subject to change in future versions.
0 commit comments