‹ BackHN Continuity

Thread

Postgres SELECT DISTINCT Does Not Scale

106 points · 28 comments · KraftyOne

  1. atemerev · · focus · HN ↗
    Well, if the solution is a manual workaround that forces a better query plan, this needs to be a part of Postgres itself so it builds better query plans automatically.
    1. SkiFire13 · · focus · HN ↗
      The manual workaround is even documented in postgres&#x27; wiki <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
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.