Radim Marek: The DISTINCT in your COUNT

Radim Marek: The DISTINCT in your COUNT

💡 原文英文,约1900词,阅读约需7分钟。
📝

内容提要

Here is a query that shows up in every analytics workload: SELECT count(DISTINCT user_id) FROM events; It looks like the cheapest possible thing: count the distinct users. On a machine with...

➡️

继续阅读