Skip to content

Commit 80b603e

Browse files
authored
fix(docs): LHOL - minor changes around typo and space (#70)
* fix: typo * fix: missing space
1 parent 66b4170 commit 80b603e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/hands-on-labs/explore-cli/cli-gsi.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ aws dynamodb scan \
2020
--return-consumed-capacity TOTAL
2121
```
2222

23-
When running that scan operaton we could see that the *Count* returned was different than the *ScannedCount*. If there had been a billion Reply items but only three of them were posted by User A, we would have to pay (both in time and money) to scan through a billion items just to find the three we wanted.
23+
When running that scan operation we could see that the *Count* returned was different than the *ScannedCount*. If there had been a billion Reply items but only three of them were posted by User A, we would have to pay (both in time and money) to scan through a billion items just to find the three we wanted.
2424

2525
Armed with this knowledge of GSIs, we can now create a GSI on the **Reply** table to service this new access pattern. GSIs can be created and removed at any time, even if the table has data in it already! This new GSI will use the *PostedBy* attribute as the Partition (HASH) key and we will still keep the messages sorted by *ReplyDateTime* as the Sort (RANGE) key. We want all the attributes from the table copied (projected) into the GSI so we will use the ALL ProjectionType. Note that the name of the index we create is `PostedBy-ReplyDateTime-gsi`.
2626

content/hands-on-labs/explore-console/console-read-item-collection.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Item Collections are groups of Items that share a Partition Key. By definition,
99
When we invoke the *Query* API we must specify a [Key Condition Expression](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.html#Query.KeyConditionExpressions). If we were comparing this to SQL, we would say "this is the part of the WHERE clause that acts on the Partition Key and Sort Key attributes". This could take a couple of forms:
1010

1111
* Just the Partition Key value of our Item Collection. This indicates that we want to read ALL the items in the item collection.
12-
* The Partition Key value and some kind ofExplore the other options in the Item explorer and figure out how to get queries to return with Replies sorted from most recent to least recent.
12+
* The Partition Key value and some kind of Explore the other options in the Item explorer and figure out how to get queries to return with Replies sorted from most recent to least recent.
1313
, >=, BETWEEN, and BEGINS_WITH.
1414

1515
The Key Condition Expression will define the number of RRUs or RCUs that are consumed by our Query. DynamoDB will add up the size of all the rows matched by the Key Condition Expression, then divide that total size by 4KB to calculate the consumed capacity (and then it will divide that number in half if you're using an eventually consistent read).

0 commit comments

Comments
 (0)