$facet vs parallel queries ?

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hi all,

      I just have a quick question about the usage of the `$facet` aggregation pipeline operator. It comes as a handy operator to perform multiple aggregations at once, however, it seems to be slower than simply performing the queries in parallel.

      Though I am not running those tests on a production setup, I was wondering about the use cases of the `$facet` operator? It seems to be quite related to the `$bucket` and `$bucketAuto` operators and may actually become more efficient when used with those? Is that correct?

      Any clue or insights is highly welcome.
      Thanks.

            Assignee:
            Unassigned
            Reporter:
            Matthias Benkort [X]
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: