When doing a PartiQL select statement over a DynamoDB table:
Do we need to explicitly define which index to use, or can that be inferred from the
WHEREcondition? I.e, if an index is not defined on theFROMbut the condition uses an indexed column with an equality comparison, is that index used automatically to perform aqueryinstead of ascan?In a related question, is there any way to see the "query/scan plan" used by a PartiQL
select?
Thanks
It will automatically infer based on the where condition. Below is the documentation which clearly mentions that.
PartiQL Select Statment