thdxr
08/24/2021, 4:00 PMthdxr
08/24/2021, 4:06 PMSlawomir Stec
08/24/2021, 4:40 PMOmi Chowdhury
08/24/2021, 4:58 PMthdxr
08/24/2021, 5:23 PMOmi Chowdhury
08/24/2021, 5:42 PM{ pk: "workspace/workspace_id", sk: "_self" }
which is high read volume and another that’s {pk: "workspaces", sk: "workspace_id"}
that’s low read volume (mostly used for enumerating workspaces for ops tasks)
• Top level docs exist as {pk: "workspace_id/entity_type", sk: "entity_id"}
- don’t have many top level docs per workspace (usually 10s, max ~hundreds)
• Lower level docs exist as {pk: "parent_entity_type/parent_entity_id/entity_type", sk: "entity_id"}
, have a GSI that partitions by workspace_id
and sometimes a GSI that partitions by parent’s parent entity
• And as you’d expect there’s plenty of exceptions to the scheme above to optimise for various query patternsthdxr
08/25/2021, 12:51 PMthdxr
08/25/2021, 12:51 PMOmi Chowdhury
08/25/2021, 3:03 PMOmi Chowdhury
08/25/2021, 3:05 PMthdxr
08/25/2021, 3:45 PM