logoalt Hacker News

Dylan16807 • today at 2:47 AM • 2 replies • view on HN

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.


Replies

gfody • today at 5:49 AM

nope - either gets you a HashAggregate, GroupAggregate, or Unique depending on whether the column/input is indexed/ordered

DiabloD3 • today at 6:00 AM

The article seems to have changed since I commented.

➕ show 2 replies