Replies: 3 comments
-
Hello, Now I'm writing something here! The idea of cursor based pagination is:
The article that discusses the unstable pagination is this one, and this is the article that explains keyset pagination, and it's performance implications. There's an implementation (but only for AR) and is the gem order query To test the pagination here, I created a 10MM records tables started to go through the table, after creating the correct indexes I could retrieve the records in 300ms (I haven't tuned my machine either PostgreSQL installation) When there's an index that "pre-filter" the records (like a ps: I added some rules to the stable cursor, was ordering based on 3 columns, and this is what lowers the performance, if orders on by a DateTime column, the 10MM rows paginations is always below 50ms So here's my idea of what is, why it's important and the performance of cursor based pagination. |
Beta Was this translation helpful? Give feedback.
-
I'm out of the running for this week, I'll respond to it when I get some time! |
Beta Was this translation helpful? Give feedback.
-
@fernandes I love the idea of it, but since you already looked into it, could you maybe try and make as a feature/adapter for AR in finder? If you need some help with understanding where's what and what does what, you can hit me up on Thursday or after on Slack. |
Beta Was this translation helpful? Give feedback.
-
@fernandes wanted this, perhaps better if he writes about it a bit.
Beta Was this translation helpful? Give feedback.
All reactions