Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimized aggregation. New Index #4363

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Pyatakov
Copy link
Collaborator

@Pyatakov Pyatakov commented Nov 5, 2024

Description:

  • Aggregation with single $match stage instead of multiple stages.
  • Native to Mongo (no $where)
  • More efficient use of indexes
  • Added a new index that eliminates COLSCAN, which can be very expensive in the case of a significant number of records.

Notes for reviewer:

Significantly reduces CPU load and execution time

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Pyatakov and others added 2 commits November 11, 2024 12:43
Aggregation with single $match stage instead of multiple stages. Native to Mongo (no $where).
More efficient use of indexes (+ new index added).

Signed-off-by: Alexander Pyatakov <[email protected]>
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