Skip to content

Support for splitting mongodb aggregation pipelines into filter and transformation parts #1537

Open
@ilovemesomeramen

Description

@ilovemesomeramen

Currently the entire MongoDB pipeline is run and only in the last stage the totals are computed and the limits are being set.

If we have heavy aggregation pipelines with lookups this will make mongodb perform the entire lookup on the entire query, we can improve on this if we specify a section in the pipeline at which the total document count will remain the same and insert the limit there removing unnecessary lookup operations.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions