Reputation: 2036
For example, would it possible to put or update an item using the Global Secondary Index?
Upvotes: 1
Views: 100
Reputation: 55720
The simple answer is no - it's not possible to put or update an item using an index.
But this is a really interesting question and I think it helps to think about why it is not possible. First, an index is a projection of the source data, and the index is not necessarily a bijection between the original data set and the projected set. Said differently, the index could contain duplicates records, so how would you handle that for writes? I suppose you could make an argument that the system could do a bulk update for all source records but that is not always correct.
Upvotes: 1