Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-29454

$facet vs parallel queries ?

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • None
    • 0
    • 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 Unassigned
            Reporter:
            KtorZ Matthias Benkort [X]
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: