[SERVER-16437] Simple index scans should work like CountScan Created: 05/Dec/14  Updated: 23/Jan/15  Resolved: 16/Jan/15

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

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: David Storch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-16616 "chunks out of order" error during md... Closed
related to SERVER-16982 Optimize WiredTiger index cursor's po... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

This means creating a begin and end cursor and using pointsAt() rather than comparing keys. Could do even better by caching the end RecordId and only calling pointsAt() if the RecordIds match.



 Comments   
Comment by Githook User [ 16/Jan/15 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-16437 fix bug in IndexScan::restoreState() for the optimized end checker
Branch: master
https://github.com/mongodb/mongo/commit/7adff440ba333fb0ffa554f2ed69d8f2906a00d2

Comment by Githook User [ 16/Jan/15 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-16437 Revert "Revert "SERVER-16437 IndexScan optimize end checker for single interval scans""

This reverts commit eedfab2f783bcd1ee111cd36ece5ebfc0a5abf99.

Conflicts:
src/mongo/db/exec/index_scan.h
Branch: master
https://github.com/mongodb/mongo/commit/fadd8b58d8eb3500da77639d138789646f4cca96

Comment by Githook User [ 22/Dec/14 ]

Author:

{u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}

Message: Revert "SERVER-16437 IndexScan optimize end checker for single interval scans"

This reverts commit f984b532331e46298d52d4c786cb359fa208f3d9.
Branch: master
https://github.com/mongodb/mongo/commit/eedfab2f783bcd1ee111cd36ece5ebfc0a5abf99

Comment by J Rassi [ 22/Dec/14 ]

f984b532 seems to have introduced a regression into the IndexScan stage. See SERVER-16616 for details. I'm reverting f984b532 and re-opening this ticket for 2.8.0-rc5.

redbeard0531: please debug the test failure attached at SERVER-16616 if you have a chance on Monday or Tuesday. If you don't have time, hand this off to david.storch.

Comment by Githook User [ 16/Dec/14 ]

Author:

{u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}

Message: SERVER-16437 IndexScan optimize end checker for single interval scans
Branch: master
https://github.com/mongodb/mongo/commit/f984b532331e46298d52d4c786cb359fa208f3d9

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