Repository navigation
feat(search): track record usage metrics and add popularity sort modes - #1708
Merged
Merged
Conversation
Contributor
|
The latest Buf updates on your PR. Results from workflow Buf CI / verify-proto (pull_request).
|
ramizpolic
reviewed
Jun 26, 2026
ramizpolic
reviewed
Jun 26, 2026
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
paralta
marked this pull request as ready for review
June 26, 2026 13:19
ramizpolic
requested changes
Jun 26, 2026
paralta
force-pushed
the
feat/record-popularity
branch
from
June 26, 2026 14:41
01945e4 to
10fb898
Compare
…tracking Signed-off-by: Catarina Paralta <[email protected]>
… and provider count methods Signed-off-by: Catarina Paralta <[email protected]>
Signed-off-by: Catarina Paralta <[email protected]>
Signed-off-by: Catarina Paralta <[email protected]>
Signed-off-by: Catarina Paralta <[email protected]>
Signed-off-by: Catarina Paralta <[email protected]>
…ervice Signed-off-by: Catarina Paralta <[email protected]>
Signed-off-by: Catarina Paralta <[email protected]>
…ection Signed-off-by: Catarina Paralta <[email protected]>
paralta
force-pushed
the
feat/record-popularity
branch
from
June 29, 2026 08:28
10fb898 to
d3af749
Compare
ramizpolic
approved these changes
Jun 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a
record_usage_metricstable that accumulates per-record usage signals (pull_count,lookup_count,provider_count) and exposes them as sort modes onSearchService.StoreService.Pull; lookup counts inStoreService.Lookup.metricsreconciler task. Because the routing layer uses an embedded Badger store that only supports a single writer, the standalone reconciler queries provider count over a dedicatedRoutingService.GetProviderCountgRPC RPC rather than reading the datastore directly; it requiresserver_addressto be configured for this task to run.