Commit 56f381c
perf: optimize span count metric gathering (#65)
* perf: optimize span count metric gathering
instead of querying the database for the exact count of the span table
which is rather costly do a postgres stat lookup which is quite close
and extremely fast.
* enh: adapt query metrics in case spans table is partitioned
when spans table is partitioned the stats cannot be retrieved from the
parent table, with this change we retrieve the sum of all partitions
when avaiable
---------
Co-authored-by: Nicolás De los Santos <[email protected]>1 parent fb4347d commit 56f381c
1 file changed
+21
-2
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments