From the course: AWS Certified Developer - Associate (DVA-C02) Cert Prep
Unlock this course with a free trial
Join today to access over 24,600 courses taught by industry experts.
Global Secondary Index (GSI) vs. Local Secondary Index (LSI) - Amazon Web Services (AWS) Tutorial
From the course: AWS Certified Developer - Associate (DVA-C02) Cert Prep
Global Secondary Index (GSI) vs. Local Secondary Index (LSI)
- [Narrator] Now let's review the differences between a local secondary index and a global secondary index. We already know how these indexes work as we already covered them in the DynamoDB section. In this video, we'll look at the significant areas of comparison that you may be evaluated on in the exam. Let's start off with the key attributes. In GSI, you can project a different partition key, a different sort key, or a different combination of them, plus some other non-key attributes. LSI, on the other hand, can only have a different sort key and some non-key attributes. Remember that an LSI takes the partition key of its base table, so you cannot assign a different partition key. Next, the span query. For GSIs, queries on the index can span all data in the base table across all partitions. While in a local secondary index, queries are scoped locally on the partition key of its base table. You're just modifying the way you retrieve and filter data by having a different sort key. As…
Contents
-
-
-
-
-
-
AWS monitoring services6m 6s
-
(Locked)
AWS X-Ray overview2m 56s
-
(Locked)
Concurrency in AWS Lambda3m 17s
-
(Locked)
Hands-on lab: AWS Lambda execution environment reuse6m 2s
-
(Locked)
Hands-on lab: AWS Lambda cold start4m 11s
-
(Locked)
Hands-on lab: Access to a CodeCommit repository6m 51s
-
(Locked)
Hands-on lab: Step Functions Workflow Studio walkthrough4m 1s
-
(Locked)
Amazon DynamoDB Secondary Indexes overview7m 54s
-
(Locked)
Amazon DynamoDB Global Secondary Index (GSI)2m 23s
-
Hands-on lab: Creating a Global Secondary Index (GSI)9m 54s
-
(Locked)
Amazon DynamoDB Local Secondary Index (LSI)4m 6s
-
(Locked)
Global Secondary Index (GSI) vs. Local Secondary Index (LSI)3m 32s
-
(Locked)
Amazon DynamoDB capacity modes4m 19s
-
(Locked)
Amazon DynamoDB RCU and WCU calculation4m 6s
-
(Locked)
Amazon DynamoDB Accelerator (DAX)3m 32s
-
(Locked)
Amazon DynamoDB Streams3m 30s
-
(Locked)
Amazon DynamoDB Time to Live (TTL)2m 24s
-
(Locked)
Amazon DynamoDB transactions5m 20s
-
(Locked)
Amazon DynamoDB global tables5m 18s
-