this post was submitted on 15 Dec 2023
-2 points (46.9% liked)

Programming

17364 readers
216 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

If you are wondering why lemmy is moving away from offset pagination since 0.19, here is a nice article about it

you are viewing a single comment's thread
view the rest of the comments
[–] SpaceNoodle@lemmy.world 15 points 11 months ago (7 children)
[–] wccrawford@lemmy.world 10 points 11 months ago (5 children)

https://ivopereira.net/efficient-pagination-dont-use-offset-limit

This seems to be the same article.

I have my doubts about the technique, but it could be useful in certain controlled situations.

[–] MegaMacSlice@programming.dev 3 points 11 months ago (1 children)

I was going to recommend looking at https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#scroll-search-results - but it looks like that method is now not advised- but if you read up above it it looks like there’s a search_after/PIT method described which sounds similar to the article.

This is all to say - I don’t think this is a one-off concept - it’s been around for a bit.

load more comments (3 replies)
load more comments (4 replies)