---
title: "Discussion on \"Postgres not using your index? It's counting pages, not rows\" | Hashnode"
description: "Discussion on \"Postgres not using your index? It's counting pages, not rows\". You get a Seq Scan even with an index because the planner prices a query in pages, and a small table is cheaper to read whole."
url: "https://hashnode.com/posts/postgres-not-using-your-index-it-s-counting-pages-not-rows/6af719ea29ba54b646e79c17"
---

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

Discussion

# [Postgres not using your index? It's counting pages, not rows](https://anatoliizhadan.hashnode.dev/postgres-not-using-your-index-it-s-counting-pages-not-rows?utm_source=hashnode&utm_medium=feed)

You get a Seq Scan even with an index because the planner prices a query in pages, and a small table is cheaper to read whole.

Nov 13 · 13 min read · anatoliizhadan.hashnode.dev  
Read the article

-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#database](https://hashnode.com/tag/database)
-   [#sql](https://hashnode.com/tag/sql)
-   [#performance](https://hashnode.com/tag/performance)
-   [#backend-development](https://hashnode.com/tag/backend-development)

## Written by

[Anatolii Zhadan](https://hashnode.com/@anatoliizhadan)

@anatoliizhadan · Lisbon, Portugal

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
