Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

chore: Reduce frequency of COUNT(*) on lsif_indexes#64288

Merged
varungandhi-src merged 1 commit into
mainfrom
vg/reduce-freq
Aug 6, 2024
Merged

chore: Reduce frequency of COUNT(*) on lsif_indexes#64288
varungandhi-src merged 1 commit into
mainfrom
vg/reduce-freq

Conversation

@varungandhi-src

Copy link
Copy Markdown
Contributor

Previously, for metrics reporting, we were querying the number of queued+errored
records every 5 seconds. For large queues + heavy contention, this scan itself takes
a few seconds, despite using an index. Reduce the frequency of this scan as we
don't need updates to the queue size every 5 seconds.

Test plan

Check that frequency of COUNT(*) is reduced on Sourcegraph.com once
this patch makes its way to Sourcegraph.com

@cla-bot cla-bot Bot added the cla-signed label Aug 6, 2024
@github-actions github-actions Bot added team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform labels Aug 6, 2024
@varungandhi-src varungandhi-src enabled auto-merge (squash) August 6, 2024 06:44
@varungandhi-src varungandhi-src merged commit 224e236 into main Aug 6, 2024
@varungandhi-src varungandhi-src deleted the vg/reduce-freq branch August 6, 2024 08:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants