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

Server does not require hint() for min()/max() when IDHACK is used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Gone away
    • None
    • None
    • Querying
    • Query 2019-07-29

    Description

      In SERVER-39567 we changed min()/max() to require a hint(), but kay.kim discovered that this is not enforced when IDHACK is used.

      I don't think there's an incorrect results bug here (similar to the linked ticket) but this is undesirable.

      Repro:

      db.c.find({_id: 5}).max({_id: 1}).explain()
      

      Attachments

        Issue Links

          Activity

            People

              misha.ivkov@mongodb.com Mikhail Ivkov (Inactive)
              ian.boros@mongodb.com Ian Boros
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: