‹ BackHN Continuity

Thread

Training a 4B model to produce 81% faster query plans than Postgres

702 points · 144 comments · polyphilz

  1. HackerThemAll · · focus · HN ↗
    Two things. One is that to remind folks that PostgreSQL has used a tiny form of "artificial intelligence", that is GEQO - Genetic Query Optimizer, since 2001.

    Second. How would that LLM-based query optimizer work in a real-world 10,000 qps ERP system with very large shape of queries? I'm not saying it's useless, it just won't replace a real query planner soon. Latencies would skyrocket.

    1. karambahh · · focus · HN ↗
      I'm also quite skeptical of performance/determinism over a real world load but if I'm not mistaken, a 10 000 qps with large shape of queries would not benefit much either from genetic algos, would it?
      1. HackerThemAll · · focus · HN ↗
        I've seen this kind of performance coming out of PostgreSQL, so they do help somehow.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.