[SERVER-284] find x object, and get me +- x given a certain index Created: 07/Sep/09  Updated: 19/May/14  Resolved: 19/May/10

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Justin Shaffer Assignee: Alberto Lerner
Resolution: Won't Fix Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

it would be neat if we could do one query that would provide this, instead of two querys $gte.sort.limit and $lte.sort.limit to achieve the same.

personally, id like access to this from the java driver, and the ruby driver.



 Comments   
Comment by Alberto Lerner [ 19/May/10 ]

If an index exists that covers the $lte-ed and $gte-ed key, the sort would be skipped by the server. The solution with a pair of queries would be very close to ideal. (Two queries would still incur two look-ups.) This can be an interesting primitive, though, but perhaps we should wait for more usage cases to came up. Closing the item for now.

Generated at Thu Feb 08 02:53:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.