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

Allow for Binary prefixes, and more broadly, ranges in general, to be used as parts of $in queries.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Querying
    • Labels:
      None

      Description

      Generally speaking, allowing for $in queries to be able to handle a richer level of query power such as ranges would be immensely helpful. Otherwise in some cases where $in should be applicable, you are forced to use $or and hence forced to pay a performance cost.

      Something like the below would be what would be nice where a new query operator for that field, would also be accepted.

      find( { a : { $in : [ { $gt : 5,  $lt : 10}, { $gt : 20, $lt : 30} ] } } )

      The above should return all values of a that are between 5-10 or between 20-30.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              osmar.olivo Osmar Olivo
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: