Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Revealing the details of how OpenAI agents hacked Hugging Face (swarmtraces.org)
    171comments
  2. Ollaya – Ollama for open-source, Jev-style decision models (ollaya.dev)
    103comments
  3. Plan mode is dead (aymannadeem.com)
    162comments
  4. Show HN: Jev Plays Pokémon Red (jev-pokemon.vercel.app)
    74comments
  5. We're gonna need a lot more mathematicians (terrytao.wordpress.com)
    1comments
  6. Jury finds Facebook liable for deceiving users in Cambridge Analytica case (cbsnews.com)
    14comments
  7. What even is an OS now? (sockpuppet.org)
    209comments
  8. Postgres SELECT DISTINCT Does Not Scale (dbos.dev)
    3comments
  9. One Piece of Flock Camera Data Put This Innocent Woman in Jail for 13 Days (jezebel.com)
    23comments
  10. Excel now supports multiple values in a single cell (techcommunity.microsoft.com)
    93comments
  11. Gravity seems holographic. What does that mean for reality? (quantamagazine.org)
    145comments
  12. Show HN: Hacker Atlas - A map of what Hacker News talks about (hackeratlas.com)
    6comments
  13. Fourier Analysis: Drawing Llamas with Circles (adekau.github.io)
    —discuss
  14. Remembering Johannes Doerfert (llvm.org)
    2comments
  15. Two and a half years without a gallbladder (tracydurnell.com)
    5comments
  16. I wrote a ray tracer in Brainfuck (epestr.com)
    13comments
  17. First Principles Thinking (sunilsadasivan.com)
    102comments
  18. U.S. appeals court upholds designation of Anthropic as supply chain risk (cnbc.com)
    726comments
  19. Lab on a Contact Lens Can Measure Stress Through Serotonin (ieee.org)
    4comments
  20. TiddlyInstall: A universal, reusable, install system (robertsdotpm.github.io)
    7comments
  21. How video games inspire great UX (2019) (jenson.org)
    16comments
  22. How we learned to stop worrying and love campus surveillance (fnl.mit.edu)
    89comments
  23. Show HN: A game about fake news and memes (unspin.app)
    9comments
  24. Show HN: Make math automatic with Mathy (gmays.com)
    22comments
  25. What happens when you analyze your favorite college football team like the CIA? (cultivatelabs.com)
    25comments
  26. An airport cooled by natural ventilation (theguardian.com)
    30comments
  27. Ask HN: Who's still keeping a DOS machine up because the business depends on it?
    78comments
  28. Microsoft abandons personal AI chatbot race with Copilot reboot (bloomberg.com)
    85comments
  29. Show HN: Ekselio – Loveable for finance workflows (local first) (gptbeyond.com)
    2comments
  30. Platform-independent SIMD in Go (go.dev)
    137comments

Postgres SELECT DISTINCT Does Not Scale

19 pointsby 1d agodbos.dev
3 comments
1h agoHN ↗

"Postgres SELECT DISTINCT Does Not Scale"

Correct. This is documented in depth: DISTINCT sorts the results first.

The article's use case seems to imply the author did not know about GROUP BY, nor does it imply the author knew about indexes, nor ANALYZE. Postgres 18's new skip scan indexing also could help here, so ensuring the planner chooses that could help.

1h agoHN ↗

Would GROUP BY fix the issue?

The article explains that skip scan doesn't do anything here.

nor does it imply the author knew about indexes, nor ANALYZE

Indexes were talked about a lot, and they explicitly mentioned looking at the query plan.