Discussion about this post

User's avatar
Neural Foundry's avatar

Really solid breakdown of why offset pagination falls apart at scale. The Friday production story hits home - I've seen teams chase "slow database" symptoms when the real issue was exactly this. What stood out was how the composite index approach makes the database seek insteadof scan. The limit+1 trick for hasMore is clever too, avoids a whole separate count query most implementations waste time on.

No posts

Ready for more?