I find the proposed solution for 'SELECT COUNT(customer_id) FROM orders' confusing.
They suggest placing the 3 billion order rows into three sets of 1 billion, to be distributed among three machines.
But summing the number of distinct customer IDs in each bucket doesn't give you the number of distinct customer IDs in the orders table because an ID could be in more than one bucket.
What am I missing?