065f56e161
Improve the performance of the aggregation dataview. Instead of using a CTE (WITH) for filtered_source, which is only used in one place to calculate ranks, inject it as a subquery. This way the planner has a chance to ignore uneeded columns as well as to parallelize the exectution of the window function (WindowAgg in the query plan). That is the part that takes most of the time of the query. The improvement is about 20-40% in speed on PG10 with 4 cores. |
||
---|---|---|
.. | ||
histograms | ||
overviews | ||
aggregation.js | ||
base.js | ||
factory.js | ||
formula.js | ||
histogram.js | ||
index.js |