3 ms·
Amazon RedShift (based on Postgres) has an approximate function that can be used to return results faster while calculating distinct values from a large table w
by aritraghosh007 13y ago
Amazon RedShift (based on Postgres) has an approximate function that can be used to return results faster while calculating distinct values from a large table with an error approximation of +2% (http://docs.aws.amazon.com/redshift/latest/dg/r_COUNT.html http://docs.aws.amazon.com/redshift/latest/dg/r_COUNT.html). To give some perspective, we ran a test query on a RedShift table with > 900 million records to fetch unique user id's. With the approximate function applied, the results were returned in 8 seconds while it took the usual distinct query 51 seconds, ~84% faster !
- morgo 13y agoMy understanding is that it just implements the postgres protocol, its query planner is now completely different. "ParAccel's DBMS engine is built for analytics, initially based on PostgreSQL" -> http://en.wikipedia.org/wiki/ParAccel http://en.wikipedia.org/wiki/ParAccel