Skip to content

Faster lookup in registry.#328

Merged
masv3971 merged 2 commits intomainfrom
masv/improve/faster_registry_lookup
Mar 23, 2026
Merged

Faster lookup in registry.#328
masv3971 merged 2 commits intomainfrom
masv/improve/faster_registry_lookup

Conversation

@masv3971
Copy link
Member

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to speed up registry Token Status List operations by reducing MongoDB work during decoy selection and by batching writes.

Changes:

  • Adds a new MongoDB index intended to support faster decoy-related lookups.
  • Replaces $match + $sample aggregation decoy selection with random point lookups by {index, section}.
  • Batches the “real” status update plus noise decoy updates into a single BulkWrite.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link

@masv3971 masv3971 merged commit fe42162 into main Mar 23, 2026
6 checks passed
@masv3971 masv3971 deleted the masv/improve/faster_registry_lookup branch March 23, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants