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

XMLWordPrintableJSON

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

      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.

              Assignee:
              Unassigned
              Reporter:
              Osmar Olivo (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: