---
title: "Discussion on \"Changing one number from 32 to 34 made a Postgres query 6,000× faster. Here's exactly why.\" | Hashnode"
description: "Discussion on \"Changing one number from 32 to 34 made a Postgres query 6,000× faster. Here's exactly why.\". A step-by-step walk through the Postgres planner: how join_collapse_limit splits your joins before useless joins are removed, why the safe values have holes, what to ship, and what Postgres 16+ changes."
url: "https://hashnode.com/posts/changing-one-number-from-32-to-34-made-a-postgres-query-6-000-faster-here-s-exactly-why/6ae7b3c5b72c299c7f2384b3"
---

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

Discussion

# [Changing one number from 32 to 34 made a Postgres query 6,000× faster. Here's exactly why.](https://depthfirst.hashnode.dev/changing-one-number-from-32-to-34-made-a-postgres-query-6-000-faster-here-s-exactly-why?utm_source=hashnode&utm_medium=feed)

A step-by-step walk through the Postgres planner: how join\_collapse\_limit splits your joins before useless joins are removed, why the safe values have holes, what to ship, and what Postgres 16+ changes.

Nov 1 · 17 min read · depthfirst.hashnode.dev  
Read the article

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

## Written by

[Payyavula Balanagaraju](https://hashnode.com/@nagaraju2506)

@nagaraju2506

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
