Slackbot
05/10/2023, 3:19 AMDivyanshu Negi
05/10/2023, 3:20 AM0.18.3
Srikanth Chekuri
05/10/2023, 3:24 AMDivyanshu Negi
05/10/2023, 3:34 AMDivyanshu Negi
05/10/2023, 3:34 AMdocker stats | grep container_id
Srikanth Chekuri
05/10/2023, 4:05 AMAnkit Nayan
Divyanshu Negi
05/10/2023, 4:09 AMnproc
it shows 2, and no specific cpu core setting is done on the docker container, so it has access to the 2 CPU cores from hostAnkit Nayan
Divyanshu Negi
05/10/2023, 4:14 AMSrikanth Chekuri
05/10/2023, 4:17 AMDivyanshu Negi
05/10/2023, 4:18 AMdocker stats | grep container_id
and while filtering traces for 1 DaySrikanth Chekuri
05/10/2023, 4:19 AMDivyanshu Negi
05/10/2023, 4:20 AMSrikanth Chekuri
05/10/2023, 4:24 AMstringTagMap
in traces which will get really slow and would lead to timeout for other panels since the gc query is not yet finished. Create a materialized column for it and check again.Divyanshu Negi
05/10/2023, 4:28 AMSrikanth Chekuri
05/10/2023, 4:38 AMDivyanshu Negi
05/10/2023, 4:42 AMSrikanth Chekuri
05/10/2023, 5:03 AMSELECT toStartOfInterval(timestamp, INTERVAL 60 SECOND) AS ts,
avg(durationNano) as value
from signoz_traces.distributed_signoz_index_v2 where (timestamp >= (now() - toIntervalHour(6)))
AND stringTagMap['gc_type']='GC' group by ts order by ts
Ankit Nayan
Ankit Nayan
mapContains(stringTagMap, 'gc_type')
will make the query faster?Vishal Sharma
05/10/2023, 9:09 AMadding serviceName in the filters should speed up things, right?Yes, more filters means less DB rows scanned and it will be faster
Vishal Sharma
05/10/2023, 9:10 AMalso, addingYes if usecase is just to check ifwill make the query faster?mapContains(stringTagMap, 'gc_type')
gc_type
exists then this way it should be faster.Ankit Nayan
Yes if usecase is just to check ifI meant addingexists then this way it should be faster.gc_type
mapContains
along with AND stringTagMap['gc_type']='GC'
Vishal Sharma
05/10/2023, 10:05 AMI meant addingTested this on a test environment. This doesn’t reduce number of rows scanned and no significant performance changes withalong withmapContains
AND stringTagMap['gc_type']='GC'
mapContains
filter