Get next and previous item from dynamo db based on current item

0

Hi there, I need to get next and previous item based on the current item from dynamo db.

I only have two columns in table. 1) Entity id (UUID) and 2) URL.

Is there any way so that I get next and previous value?

Or should I have to use incremental id for entity id value and based on the current id I'll just do increment and decrement for next and previous value?

Can anyone please help me?

Thanks

質問済み 9ヶ月前354ビュー
1回答
0

Hi

DynamoDB is a key/value store and there is no concept of next / previous item (value). It looks like you have an HASH key that is an UUID and you need to query the table using the UUID. If you need the possibility to query next / previous item you probably need an incrementing key so you can determine the next / previous.

profile picture
エキスパート
回答済み 9ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ