---
title: "Discussion on \"Offset Pagination Is Lying to You\" | Hashnode"
description: "Discussion on \"Offset Pagination Is Lying to You\". On 10M Postgres rows, OFFSET took 1 second to fetch the last page and skipped half a batch job's rows. Keyset pagination fixed both. Here's how."
url: "https://hashnode.com/posts/offset-pagination-is-lying-to-you-kmeo3/6b0e757ab2dce9c84e204dd4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Offset Pagination Is Lying to You](https://blog.zyvop.com/offset-pagination-is-lying-to-you-kmeo3?utm_source=hashnode&utm_medium=feed)

On 10M Postgres rows, OFFSET took 1 second to fetch the last page and skipped half a batch job's rows. Keyset pagination fixed both. Here's how.

15h ago · 15 min read · blog.zyvop.com  
Read the article

-   [#apidesign](https://hashnode.com/tag/apidesign)
-   [#backend](https://hashnode.com/tag/backend)
-   [#databaseperformance](https://hashnode.com/tag/databaseperformance)
-   [#pagination](https://hashnode.com/tag/pagination)
-   [#postgresql](https://hashnode.com/tag/postgresql)

## Written by

[ZyVOP](https://hashnode.com/@zyvop)

@zyvop · Delhi, India

  
[View profile](https://hashnode.com/@zyvop)

The Developer Publishing Hub

One platform to write, cross-post to Dev.to, Medium, WordPress, Hashnode, and Bluesky, and protect your SEO with canonical links. Zero paywalls and full content ownership.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
