sahil arora
sahil arora

Reputation: 13

Dynamodb use begin with query on primary key

I have the primary key as "id" STRING "123456", I want to use (begin_with) query on this primary key , I sit possible ?

Upvotes: 0

Views: 486

Answers (1)

jellycsc
jellycsc

Reputation: 12349

No, you can't use begin_with on the partition key. The workaround is to create a GSI and query that using begin_with.

Upvotes: 1

Related Questions