Skip to content

Commit 2269a2c

Browse files
Addressing review comments
1 parent 309493d commit 2269a2c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

content/integrate/redis-data-integration/data-pipelines/data-denormalization.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ output:
7373
# server_name: chinook
7474
# schema: public
7575
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
7878
child_key: InvoiceId # optional, if different from parent_key
7979
path: $.InvoiceLineItems # path must start from document root ($)
8080
structure: map # only map supported for now
@@ -91,10 +91,9 @@ The job must include the following attributes in the `nest` block:
9191
`schema` attributes. Note that this attribute refers to a Redis *key* that will be added to the target
9292
database, not to a table you can access from the pipeline. See [Using nesting](#using-nesting) below
9393
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.
9897
- `path`: The [JSONPath](https://goessner.net/articles/JsonPath/)
9998
for the map where you want to store the child entities. The path must start with the `$` character, which denotes
10099
the document root.
@@ -135,4 +134,4 @@ There are several important things to note when you use nesting:
135134
See the
136135
[Debezium PostgreSQL Connector Documentation](https://debezium.io/documentation/reference/connectors/postgresql.html#postgresql-replica-identity)
137136
for more information about this.
138-
- 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

Comments
 (0)