AutoDetectIndex Property
A boolean indicating if secondary indexes should be automatically detected based on the query used.
Data Type
BooleanDefault Value
trueRemarks
In DynamoDB, secondary indexes can be used to more quickly select data from a given table. By default, we attempt to automatically detect an index to use based on the query. However, this may not always be desirable. If you have control over the query and would prefer to specify the index yourself, set AutoDetectIndex to false and simply use the SecondaryIndex pseudo column to specify which index to use (if any).