Engineering Ticket Description:
I was looking at the optimizing aggregation pipelines docs page and didn't see this one listed.
This is only possible if the subsequent $match doesn't use any computed fields, but there could be a large win with regards to index usage if you could move the $match prior to a $project.
is the same as
because the $match is only using fields that exist in the original document.