[SERVER-2586] javascript wrapper should support ClientCursor Created: 18/Feb/11  Updated: 14/Apr/16  Resolved: 14/Mar/16

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

Type: Improvement Priority: Major - P3
Reporter: Eliot Horowitz (Inactive) Assignee: Mira Carey
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-2407 Switch to v8 Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

If we use ClientCursor * for getting data bson data, we can use covered indexes.



 Comments   
Comment by Mira Carey [ 14/Mar/16 ]

dbclientcursor has been capable of using covered indexes for a long while.

Closing as no longer relevant

Comment by Antoine Girbal [ 03/Sep/12 ]

for mongoFind in v8_db.cpp, the code is basically

        DBClientBase * conn = getConnection( args );
            auto_ptr<mongo::DBClientCursor> cursor;
            cursor = conn->query( ns, q ,  nToReturn , nToSkip , haveFields ? &fields : 0, options , batchSize );

Not sure what need to be changed to support covered index

Generated at Thu Feb 08 03:00:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.