How Pagination Works in DynamoDB

Поделиться
HTML-код
  • Опубликовано: 15 дек 2024

Комментарии • 33

  • @glennadams7047
    @glennadams7047 4 года назад +1

    Thanks for this. More DynamoDb content please. Nicely done!!!

    • @BeABetterDev
      @BeABetterDev  4 года назад +1

      Thanks Glenn! Glad you enjoyed. More DynamoDB content coming soon :)

  • @javedusmani6394
    @javedusmani6394 Год назад

    Very well explained! Simple to understand and than implement...Thanks for sharing this

  • @ced4298
    @ced4298 4 года назад +1

    Very well explained! I always wanted to know how this function was implemented on many of the websites that I have visited.

  • @powerpoint444
    @powerpoint444 2 года назад

    Very helpful for beginners like me, thank you

  • @thinq5339
    @thinq5339 2 года назад +1

    I'm using amplify with appsync, when I'm querying with model pagination limit=10 , it is returning 10 items exactly, but when I'm adding a filter to it, it is returning less than 10 items. Seems it is filtering items form first 10 items, instead of returning 10 items satisfying the filter condition and my second issue issue how to sort whole dynamoDB table items, example I want the list of post with highest likes in current week in descending order how to do that in appsync & amplify?

    • @LAVOTODGJORCE
      @LAVOTODGJORCE 2 года назад

      Hey @ThinQ , Did you manage to fix this issue? We are having the same issue on our side

    • @thinq5339
      @thinq5339 2 года назад

      @@LAVOTODGJORCE yup

  • @sakarsr
    @sakarsr 4 года назад +2

    Thanks for this wonderful video on DynomaDB pagination. Can you please explain how
    to sort the records, before doing pagination.

    • @BeABetterDev
      @BeABetterDev  4 года назад

      Hi Sakar,
      Thank you for your comment. In order to do sorted pagination, you should use the 'ScanIndexForward' parameter of the query function. For instance, do a paginated query that sorts on your range key in descending order would be: response = table.query(KeyConditionExpression=Key('CountryName').eq('USA'), ScanIndexForward=false, ExclusiveStartKey=key).
      Simply swap the ScanIndexForward value to true for ascending order.
      Hope this helps.

    • @sakarsr
      @sakarsr 4 года назад

      Thanks, have god day and good health.

  • @glagarwal
    @glagarwal 4 года назад +1

    Well explained, can we modify the lastEvaluatedKey to point to a specific record?

  • @nicob1927
    @nicob1927 3 года назад +1

    Thanks for explained, but I have a doubt, how do you set the QueryPageSize, does it refer to the limit?

  • @jriverox
    @jriverox 4 года назад +1

    Excellent content, thanks for sharing. How to apply sort with pagination?

  • @johnvela1508
    @johnvela1508 Год назад

    Thank you very much, it was very helpful

  • @makxell
    @makxell 3 года назад

    I'm using limit in my rows and I want to be able to access directly the second/third page without the need to make the first request for the evaluatedKey value. Is this possible?

  • @niteshgupta8436
    @niteshgupta8436 2 года назад +1

    Great content and explanation !!! Just one doubt - if my table is having 10 data and all collectively is less than 1MB. If i query with page size = 10, what should be my lastEvaluatedKey?? Is it null or non-null ??

    • @BeABetterDev
      @BeABetterDev  2 года назад

      Hi Nitesh, it would be null. Hope this helps.

  • @xiaobozhang5805
    @xiaobozhang5805 4 года назад +1

    Thank you for sharing it. How to get "previous" page in DynamoDB?

    • @aoatom8244
      @aoatom8244 4 года назад

      do you know ?

    • @jonasbelly5857
      @jonasbelly5857 3 года назад

      Maintain state (keys) in front-end. Use the stored keys in reverse order to paginate backwards.

  • @anthonyfarias321
    @anthonyfarias321 3 года назад

    I'm using dynamoose, do you consider it to be a good option?

  • @kowsikgelli7257
    @kowsikgelli7257 3 года назад

    awesome explanation

  • @MoshunStudios
    @MoshunStudios 2 года назад

    Thank you for this, Daniel. Any good references or resources on how to pull and display this data with Javascript and CSS? I'm not a frontend guy so I'm struggling with that.

  • @mybluesky123
    @mybluesky123 2 года назад

    Is this applicable to Scan as well?

  • @pranaytonpay1246
    @pranaytonpay1246 2 года назад

    Great explanation.

  • @谢方圆-e3b
    @谢方圆-e3b Год назад

    Really a good video!!

  • @mingchauwen2669
    @mingchauwen2669 2 года назад +1

    Hi, thanks for sharing such a great video. I wonder if there is a way to scan the dynamodb table with pagination like get /users?page=5&limit=20 ?

    • @BeABetterDev
      @BeABetterDev  2 года назад

      Hi ingchau, you could certainly implement this yourself but out of the box it isnt supported by Dynamo :(

  • @Abi-iy6ek
    @Abi-iy6ek 3 года назад

    What if I insert T1' after returning T1 - T5?

  • @danieleduardo1085
    @danieleduardo1085 Год назад

    Somebody have an example using NodeJS, I try use pageSize, page to give a limit and offset to integrate it in Angular. Please help me :)