gg2
x.com

4B model generates 81% faster query plans than Postgres

The gist

Rohan Bansal trained a 4B model to produce 81% faster query plans than Postgres.
It suggests small models can out-plan a database's own optimizer.

How it unfolded

  1. Sep 16, 2026Rohan Bansal published "Training a 4B model to produce 81% faster query plans than Postgres".
  2. Sep 16, 2026Bansal posted on X that tiny models are capable of out-planning a database, linking the write-up.
  3. Sep 16, 2026The article was submitted to Hacker News by user polyphilz, reaching 5 points.

Sources

Read the full story in the app gg2 — free on the App Store