db.oplog.rs.find().sort({natural: - 1}) gives error

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.6.0
    • Component/s: Querying
    • None
    • Environment:
      Linux 64 bit
    • Linux
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > db.oplog.rs.find().sort(

      {natural:-1}

      )
      > db.oplog.$main.find().sort(

      {natural:-1}

      )
      error: {
      "$err" : "too much data for sort() with no index. add an index or specify a smaller limit",
      "code" : 10128
      }
      > db.oplog.$main.find()

              Assignee:
              Unassigned
              Reporter:
              MediaMath Mongo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: