cloud:aws:dynamodb
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cloud:aws:dynamodb [2023/07/11 14:56] – skipidar | cloud:aws:dynamodb [2023/11/01 07:13] (current) – ↷ Page moved from business_process_management:camunda:cloud:aws:dynamodb to cloud:aws:dynamodb skipidar | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Dynamo DB ===== | ===== Dynamo DB ===== | ||
| + | |||
| + | === Data === | ||
| + | |||
| + | The following table lists the data types you can use with PartiQL for DynamoDB. | ||
| + | |||
| + | | Boolean | '' | ||
| + | | Binary | '' | ||
| + | | List | '' | ||
| + | | Map | '' | ||
| + | | Null | '' | ||
| + | | Number | '' | ||
| + | | Number Set | ''<< | ||
| + | | String Set | ''<<' | ||
| + | | String | ''' | ||
| + | |||
| + | < | ||
| + | INSERT INTO TypesTable value {' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | } | ||
| + | </ | ||
| + | |||
| === Indexing === | === Indexing === | ||
| Line 40: | Line 65: | ||
| {{https:// | {{https:// | ||
| + | </ | ||
| + | | Sparse index |< | ||
| + | Sparse Index is a **special type of GSI** that allows you to **index only a subset of the collection** by **indexing an attribute that is not present on all** the items. | ||
| + | |||
| + | This technique is useful to **quickly query for a set of items that have a specific attribute value**, e.g. only rows that have an attribute deletedAt defined. | ||
| + | |||
| + | To create a sparse index, make sure that **only items that should be in that index** - **have a value** of that index-sort-key | ||
| + | |||
| + | {{https:// | ||
| + | </ | ||
| + | | Inverted index |< | ||
| + | Inverted Index is a GSI that is basically a primary key but inversed - table' | ||
| + | |||
| + | {{https:// | ||
| </ | </ | ||
| Line 61: | Line 100: | ||
| |Local secondary index|Value| | |Local secondary index|Value| | ||
| |Term|Value| | |Term|Value| | ||
| + | |||
| + | |||
| + | === Query vs Scan === | ||
| + | |||
| + | https:// | ||
| + | |||
| + | {{https:// | ||
cloud/aws/dynamodb.1689087396.txt.gz · Last modified: by skipidar
