News for hackers. Stuff that matters.
Re:Amazon Redshift – New Features by gopalv on Monday November 11, 2013 @05:19PM (#6714489)
HyperLogLog based COUNT DISTINCT APPROXIMATE, that's an interesting development in there (simple algorithm, but complex math).

I wonder what hashes they are using.

Re:Amazon Redshift – New Features by dmunoz on Monday November 11, 2013 @05:51PM (#6714678)
Only tangentially related to your comment, but last year there was a series of postings "Damn Cool Algorithms" in which the last post covered HyperLogLog in the post on cardinality estimation [0]. Some discussion in the HackerNews submission [1].

[0] http://blog.notdot.net/2012/09/Dam-Cool-Algorithms-Cardinali... [1] https://news.ycombinator.com/item?id=4488946

Re:Amazon Redshift – New Features by vtuulos on Monday November 11, 2013 @06:14PM (#6714765)
one of the biggest benefits of HLL is that if you are only interested in set cardinalities, you don't have to store the original items at all, just a small HLL data structure which can be used to compute set unions, and with some caveats, intersections.

It would be really great if Redshift supported HLL as a proper data type, and not just an optimization for COUNT(). A proper data type would allow us to store pre-aggregated data instead of billions of unnecessarily granular rows.