use new measurements_distinct materialized view to speed up select distinct
merge
Merge branch 'master' of ssh://github.com/perf101/rage
t=1022 result was being truncated, so increase limit_rows to 100000 and keep an eye on the results