count-distinct

Tag

Cards List
#count-distinct

The DISTINCT in Your COUNT

Hacker News Top · 2026-08-06 Cached

This article explains why PostgreSQL disables parallel query for count(DISTINCT) aggregates, causing full-table sorts and disk spills, and compares it to the parallel-friendly count(*).

0 favorites 0 likes
← Back to home

Submit Feedback