Skip to content

Implement search indexes for mongo collections#18

Merged
https-richardy merged 1 commit into
masterfrom
feature/16-implements-search-indexes
Mar 30, 2026
Merged

Implement search indexes for mongo collections#18
https-richardy merged 1 commit into
masterfrom
feature/16-implements-search-indexes

Conversation

@https-richardy
Copy link
Copy Markdown
Owner

This PR introduces the creation and organization of MongoDB indexes across the application collections to improve query performance and optimize the main read paths of the system.

Both simple and compound indexes were defined based on the most common access patterns, ensuring efficient filtering, especially in scenarios involving RealmId and key identifier fields such as Username, Name, UserId, and ClientId.

In addition, the index creation is centralized during application startup, ensuring that the database is properly prepared when the service boots, without requiring any manual intervention.

This improvement helps reduce query latency and enhances the system’s scalability as data volume grows.

@https-richardy https-richardy added the enhancement New feature or request label Mar 30, 2026
@https-richardy https-richardy merged commit 486f8a0 into master Mar 30, 2026
21 of 25 checks passed
@https-richardy https-richardy deleted the feature/16-implements-search-indexes branch March 30, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant