Hello, I happened to notice that facet, if used as the first stage in an aggregate pipeline doesn't use indexes which is a bit problematic. It's described in detail here.
This pr extracts the match stage from the pipeline and adds it before the facet which solves this issue
Hello, I happened to notice that
facet
, if used as the first stage in an aggregate pipeline doesn't use indexes which is a bit problematic. It's described in detail here.This pr extracts the match stage from the pipeline and adds it before the facet which solves this issue