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

Default order for a querry in a capped collection

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.2.3
    • Internal Client
    • None
    • Fedora 16
      CentOs 6.4

    Description

      From these two web pages:
      http://docs.mongodb.org/manual/core/capped-collections/
      and:
      http://docs.mongodb.org/manual/core/capped-collections/#capped-collections-options

      it seems that the default order for a query in a capped collection is the natural order.

      "If you perform a find() on a capped collection with no ordering specified, MongoDB guarantees that the ordering of results is the same as the insertion order."

      Can you confirm that this applies also to the c++ driver?

      Attachments

        Activity

          People

            Unassigned Unassigned
            islaveanu Ionut Slaveanu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: