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

$facet vs parallel queries ?

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Aggregation Framework
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: