Looking at this DynamoDB documentation about GSI, I found the following comment:
A global secondary index only keeps track of data items where its key attribute(s) actually exist.
Which of the following does this exactly mean?
- Missing
Partition Keyand/orSort Keyfrom GSI point of view will result in no additional item in GSI
e.g.) "GameTitle" and "TopScore" are required - Missing data for any attributes you specify as a part of GSI with
INCLUDEoption will result in no additional item in GSI
e.g.) All attributes projected to GSI even "Wins", "Loses" are required
I'm suspecting the "key attribute(s)" refer to the 1., and any missing data from INCLUDE option point of view will simply come back as empty when GSI is queried, but wanted to check if my understanding is correct.
Also, would there be no difference between GSI and LSI in this space?