Skip to content

Commit 56f381c

Browse files
aokijiNicolás De los Santos
andauthored
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 <nicolas.delossantos@meteologica.com>
1 parent fb4347d commit 56f381c

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

internal/sql/query.sql.go

Lines changed: 21 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)