Closed rafamanzo closed 8 years ago
Here are some tests on my machine, including max. resident RAM (all using 8 metrics). Files are named for the respective branches. Gist.
In short, this is a really (almost 100%) performance good improvement by itself, but still quite a bit worse than the full aggregation rewrite (which actually doesn't even use descendant_values
anymore!).
:+1: for me
Even tough this will have no impact on aggregation after https://github.com/mezuro/kalibro_processor/pull/225, it will still be used for MetricResultsController
and the code legibility improvement is nice as well.
Nice job!
(I've removed some code made useless by this)
Right, I missed that. Nice catch on the useless code!
Great job, guys!
The previous implementation was incredibly sub-optimal. It can be easily replaced with a join on the parent_id.
Aggregation performance test results below:
@mezuro/core we need a third pair of eyes here as well.
This is part of https://github.com/mezuro/kalibro_processor/issues/207.