Skip to content
RED SAGSkills
hard20 pts · first answer countssqlperformancewarehousing

Distinct users on billions of rows

A dashboard needs daily unique users across 20 billion events. COUNT(DISTINCT user_id) is slow and costly, and a 1 to 2 percent error is fine. What is the best approach?

Choose one answer