I am just starting working in dynamodb and I want to set some indexes correctly. I have a table with objects with the following fields:
id -> unique id for every object
businessType -> not unique, you can have multiple objects with the same business type
checkType -> not unique, you can have multiple objects with the same check type
...other fields (not important)
Now i want to be able to query efficiently without scanning:
1) Query by businessType only, get all objects with specific businessType
2) Query by businessType and checkType, get all objects with specific businessType AND checkType
3) Query by id only, get the object with unique id
How do i set indexes efficiently to accomplish above ?
Thank you.