Summarizing Data in SQL
blog.yhat.com
blog.yhat.com
> In MySQL, we can use local variables to keep track of the order (...) Here's the Postgres version.
I would be interested in the MySQL percentile snip.
Probably some xargs sed awk hacks are also sufficient for results in milliseconds.
You start getting problems when dealing with >128 TB databases like the legacy crm databases at Bayer and Siemens e.g.
To answer the initial question - take a look at CitusDB that runs over PostgreSQL. They seem to be doing some cool work in real-time analytics/scalability: https://www.citusdata.com/