Introduction
When you store data in a database, sometimes you want to find items quickly using different keys. Secondary indexes let you do that by creating extra ways to look up data without scanning everything.
When you want to query a DynamoDB table by an attribute other than the main key.
When you need to sort or filter data differently without changing the main table structure.
When you want to improve read performance for specific queries.
When your application requires multiple access patterns on the same data.
When you want to add flexibility to your database queries without duplicating data.