summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/near.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-47873 Eliminate the Collection* saved in IndexDescriptorGeert Bosch2020-06-101-1/+2
|
* SERVER-43821 Make PlanStage and PlanExecutor return errors by throwingDavid Storch2020-05-291-29/+7
| | | | | | | | This eliminates the need for the FAILURE status codes in PlanStage and PlanExecutor, and brings query execution's error reporting more in line with that of the rest of the server. It also makes it easier for future implementations of PlanExecutor to comply with the interface.
* SERVER-45406 Plumb ExpressionContext through PlanStageIan Boros2020-02-281-4/+4
| | | | This patch includes also moves ownership of the collator to the ExpressionContext.
* SERVER-42981 Make WorkingSetMember compatible for use with the Sorter.David Storch2019-09-121-1/+1
| | | | | | | | The bulk of this change is to implement serialization and deserialization routines for WorkingSetMember, so that the Sorter can spill WorkingSetMembers to disk. In addition, this changes the SortExecutor to sort WorkingSetMembers internally as opposed to sorting Documents.
* SERVER-41071 Replace more NULLs with nullptrA. Jesse Jiryu Davis2019-06-171-1/+1
|
* SERVER-39339 Remove `stdx/memory.h`ADAM David Alan Martin2019-06-101-3/+3
|
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-131-1/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-37449 Make geoNear stages use RequiresIndexStage.David Storch2018-12-131-2/+2
|
* SERVER-37446 Make more PlanStages inherit from RequiresCollectionStage.David Storch2018-11-071-5/+4
|
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-8/+10
|
* SERVER-16857 Delete MMAPv1 diskloc invalidations.David Storch2018-08-291-23/+5
| | | | | | - Removes of PlanStage::invalidate(). - Removes RecordCursor::invalidate() from the storage API. - Removes CursorManager::invalidateDocument().
* SERVER-33275 Remove `platform/unordered_`* headersADAM David Alan Martin2018-02-141-1/+1
| | | | | | These headers date from before C++11 support and the `::mongo::stdx::` namespace. They can be removed and uses of the names therein can be changed to `::mongo::stdx::unordered_`* forms.
* SERVER-27975 Remove many uses of `OwnedPointerVector`ADAM David Alan Martin2017-03-101-2/+3
| | | | | This removes many of the remaining uses of the deprecated `OwnedPointerVector` type.
* SERVER-27938 Rename all OperationContext variables to opCtxMaria van Keulen2017-03-071-4/+4
| | | | | | This commit is an automated rename of all whole word instances of txn, _txn, and txnPtr to opCtx, _opCtx, and opCtxPtr, respectively in all .cpp and .h files in src/mongo.
* SERVER-18826 Rename WorkingSet State Names from LOC to RIDJames Wahlin2016-02-051-11/+11
| | | | | | Also renamed: * WorkingSetMember::hasLoc() -> WorkingSetMember::hasRecordId * WorkingSetMember::loc -> WorkingSetMember::recordId
* SERVER-19377 PlanStage: make work() non-virt, add virt method doWork()Jason Rassi2016-01-141-10/+1
| | | | | Changes PlanStage::work() to be non-virtual. PlanStage::work() now updates _commonStats and calls new pure virtual method doWork().
* SERVER-20111 Plan summary should only include the winning planCharlie Swanson2015-10-081-1/+1
|
* SERVER-16444 Only make BSONObj underlying WSM owned if not mmapv1.Max Hirschhorn2015-08-271-1/+1
| | | | | | | | | | Resolves the performance regression with mmapv1 introduced by 764e0c4 where documents were being copied in PlanStages that perform invalidations. Partially reverted changes to DeleteStage and UpdateStage because the document to return is not guaranteed to be owned after makeObjOwnedIfNeeded() is called when running with mmapv1.
* SERVER-16444 Copy data in the query subsystem as needed.Max Hirschhorn2015-08-241-0/+2
| | | | | | | | | | | A WorkingSetMember in the LOC_AND_OBJ state must be made owned when: 1. Its WorkingSetID is cached across multiple calls to work(). 2. Multiple calls to next(), seekExact(), saveState(), etc. are performed on the same WiredTiger cursor in a single work() call. No longer necessary to always copy data out of WiredTiger buffers.
* SERVER-19480 Meaningful geoNear specific statistics after eliminating ↵Brandon Zhang2015-08-141-16/+4
| | | | duplicated index scans
* SERVER-19364 move query stage OperationContext pointer management into the ↵Qingyang Chen2015-08-041-8/+4
| | | | base class
* SERVER-19039 Buffer fetched documents in geoNearBrandon Zhang2015-07-201-43/+61
|
* SERVER-17364 Don't stash RecoveryUnits across getMoresMathias Stearn2015-07-161-1/+1
| | | | | | | We now tell PlanExecutors to detach from their OperationContexts and to shed all storage engine resources before stashing the ClientCursor. This is a heavier weight operation than a normal save/restoreState which is no longer allowed to change the OperationContext.
* SERVER-17364 Unify handling of child stages into PlanStage base classMathias Stearn2015-07-161-69/+22
| | | | This is prep for adding more methods that need to propagate to children.
* SERVER-16889.5 PlanExecutor::getStats() and PlanStage::getStats() return ↵Qingyang Chen2015-06-291-3/+6
| | | | unique_ptr
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-291/+265
|
* SERVER-18830 Fixed explain output for geoNearBrandon Zhang2015-06-171-13/+7
| | | | | | Closes #987 Signed-off-by: Siyuan Zhou <siyuan.zhou@mongodb.com>
* SERVER-17633 add const qualifiers to PlanStage and Explain interfacesDavid Storch2015-04-171-2/+2
|
* SERVER-17280 geo near must propagate saveState()/restoreState() to the ↵David Storch2015-02-251-0/+6
| | | | DensityEstimator
* SERVER-17280 geo near must propagate invalidate messages to IndexScan used ↵David Storch2015-02-251-0/+4
| | | | by DensityEstimator
* SERVER-17062 rename NEED_FETCH to NEED_YIELDDavid Storch2015-02-161-4/+4
|
* SERVER-17062 Make query execution handle WriteConflictExceptions where possibleMathias Stearn2015-02-131-11/+4
|
* SERVER-16954 fix invalidation handling in NearStageDavid Storch2015-01-211-3/+18
|
* SERVER-13256 Add usings and qualifications for names from namespace stdAndrew Morrow2015-01-151-1/+3
|
* SERVER-16633 Add timer to geo near stage to track execution timeSiyuan Zhou2014-12-221-0/+4
|
* SERVER-13679 Replace DiskLoc with RecordId outside of MMAPv1Mathias Stearn2014-11-261-6/+6
| | | | | | | | | | | Operations: sed -i -e 's/\<DiskLoc\>/RecordId/g' sed -i -e 's/\<DiskLocs\>/RecordIds/g' sed -i -e 's/\<minDiskLoc\>/RecordId::min()/g' sed -i -e 's/\<maxDiskLoc\>/RecordId::max()/g' sed -i -e 's/\<getDiskLoc\>/getRecordId/g'' Changes under mmap_v1 were reverted and redone by hand as needed.
* SERVER-15675 Stages should clear their OperationContext in saveState()Jason Rassi2014-11-201-0/+2
| | | | | | While state is saved, threads pass in their own OperationContext to invalidate(). When state is restored, the stage will resume with the OperationContext passed in to restoreState().
* SERVER-15675 PlanStage::invalidate() needs OperationContextJason Rassi2014-11-201-3/+3
| | | | | | | PlanStage::invalidate() is always called by a different thread than the stage's owning thread. The method should use the active OperationContext (the caller's) rather than the stage's OperationContext.
* SERVER-15665 MMAP v1 requests yields during page faults via NEED_FETCHDavid Storch2014-11-041-3/+12
|
* SERVER-15562 Estimate density before near searchSiyuan Zhou2014-10-281-2/+29
|
* SERVER-15450 Avoid getStats() and keep interval stages as children in NearStageSiyuan Zhou2014-10-011-18/+20
|
* SERVER-15187 Update saved OperationContext in all PlanStagesDavid Percy2014-09-181-0/+1
| | | | | | | | | | | | | | | Every stage that has a field of type OperationContext* should be updating it when ::restoreState(OperationContext*) is called. Otherwise it is retaining a reference to deleted memory. This bug hasn't surfaced before because: 1. the OperationContext used to be stack allocated, so it would have the same address every time 2. mmapv1 doesn't always need to dereference the OperationContext Closes #781 Signed-off-by: Benety Goh <benety@mongodb.com>
* SERVER-13635: OperationContext on read pathsEliot Horowitz2014-08-251-1/+1
|
* SERVER-14515 Remove default limit from geoNear operationsSiyuan Zhou2014-08-061-16/+0
|
* SERVER-14633 rename prepareToYield() and recoverFromYield() to saveState() ↵David Storch2014-07-291-4/+4
| | | | | | and restoreState() Also renames PlanExecutor::getStages() to PlanExecutor::getRootStage()
* SERVER-14407 replace Runner with PlanExecutorDavid Storch2014-07-221-2/+2
|
* SERVER-9986 refactor near search for 2D and S2Greg Studer2014-07-091-0/+352
Adds progressive search functionality for $geoNear operations, allowing better integration with other cursors.