Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

DynamoDB - Secondary Indexes

Pragya Keshap answered on February 23, 2023 Popularity 8/10 Helpfulness 2/10

Contents


More Related Answers

  • export dynamodb table
  • dynamodb
  • DynamoDB pricing#
  • DynamoDB - Primary Key
  • Working with tables in DynamoDB
  • What is DynamoDB?#
  • DynamoDB
  • dynamodb nodejs
  • Dynamodb tables
  • AWS DynamoDB Core Concepts - Tables, Items, Attributes, Indexes
  • Dynamo Indexes
  • Secondary indexes
  • DynamoDB
  • Dynamo DB:
  • Dynamo DB
  • Nodejs Typescript/Javascript read env file
  • sortLinkedList
  • DynamoDB Query Operations

  • DynamoDB - Secondary Indexes

    0

    Local secondary index: Same partition key as primary key (diff. sort key)

    Example:

    Attributes: CustomerId (partition key) + OrderId (sort key), OrderCreationDt, ProductDetails, OrderStatus

    LSI: [CustomerId (partition key) + OrderCreationDt] OR [CustomerId (partition key) + OrderStatus]

    Defined at table creation (Modifications NOT allowed)

    Global secondary index: Partition and sort key CAN be diff. from primary key

    Example:

    Attributes: storeCode (Primary Key), city, state, country, address

    GSI: state or city or country

    Can be added, modified & removed later

    Stored separately (Separate RCU and WCU) from the main table

    (Recommended) Project fewer attributes to save cost

    (Recommended) Avoid throttling on main table - Assign RCU and WCU at least equal to main

    table  


    Popularity 8/10 Helpfulness 2/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 23 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.