‹ BackHN Continuity

Thread

Postgres SELECT DISTINCT Does Not Scale

106 points · 28 comments · KraftyOne

  1. nattaylor · · focus · HN ↗
    Loose index scan is made for this <a href="https:&#x2F;&#x2F;dev.mysql.com&#x2F;doc&#x2F;refman&#x2F;8.0&#x2F;en&#x2F;group-by-optimization.html#loose-index-scan" rel="nofollow">https:&#x2F;&#x2F;dev.mysql.com&#x2F;doc&#x2F;refman&#x2F;8.0&#x2F;en&#x2F;group-by-optimizatio...

    Postgres doesn&#x27;t have it yet <a href="https:&#x2F;&#x2F;wiki.postgresql.org&#x2F;wiki&#x2F;Loose_indexscan" rel="nofollow">https:&#x2F;&#x2F;wiki.postgresql.org&#x2F;wiki&#x2F;Loose_indexscan

    1. nikolatt · · focus · HN ↗
      I haven&#x27;t followed the latest Postgres releases, but I thought it would be added by now - Timescale&#x2F;Tigerdata have already implemented a similar index scan in Postgres: <a href="https:&#x2F;&#x2F;www.tigerdata.com&#x2F;blog&#x2F;how-we-made-distinct-queries-up-to-8000x-faster-on-postgresql" rel="nofollow">https:&#x2F;&#x2F;www.tigerdata.com&#x2F;blog&#x2F;how-we-made-distinct-queries-....
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.