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
Use `sort_key_attr` parameter when your table is configured with a composite primary key _(hash+range key)_.
379
+
380
+
When enabled, we will save the idempotency key in the sort key instead. By default, the primary key will now be set to `idempotency#{LAMBDA_FUNCTION_NAME}`.
381
+
382
+
You can optionally set a static value for the partition key using the `static_pk_value` parameter.
383
+
384
+
=== "Reusing a DynamoDB table that uses a composite primary key"
### Using a DynamoDB table with a composite primary key
875
-
876
-
When using a composite primary key table (hash+range key), use `sort_key_attr` parameter when initializing your persistence layer.
877
-
878
-
With this setting, we will save the idempotency key in the sort key instead of the primary key. By default, the primary key will now be set to `idempotency#{LAMBDA_FUNCTION_NAME}`.
879
-
880
-
You can optionally set a static value for the partition key using the `static_pk_value` parameter.
881
-
882
-
=== "Reusing a DynamoDB table that uses a composite primary key"
0 commit comments