How to implement pagination when using amazon Dynamo DB in rails

前端 未结 4 1753
抹茶落季
抹茶落季 2020-12-17 10:05

I want to use amazon Dynamo DB with rails.But I have not found a way to implement pagination.

I will use AWS::Record::HashModel as ORM.

This ORM

4条回答
  •  悲&欢浪女
    2020-12-17 10:11

    You issue queries using LIMIT. If the subset returned does not contain the full table, a LastEvaluatedKey value is returned. You use this value as the ExclusiveStartKey in the next query. And so on...

    From the DynamoDB Developer Guide.

提交回复
热议问题