3 ms·
Indeed, partitioning by customer_id is probably the wrong idea. Your number of customers will typically not be an primary key that is difficult to index in memo
by smileysteve 10y ago
Indeed, partitioning by customer_id is probably the wrong idea. Your number of customers will typically not be an primary key that is difficult to index in memory.
For something like page views, where a single customer will have millions of page views and your typical query will be ordered by date, you'd be much better off partitioning by date.
- brianwawok 10y agoDepends if it's time series data or not. Some data doesent shake down along date boundaries well.