faster distinct SERVER-796

This commit is contained in:
Eliot Horowitz
2010-03-29 12:55:44 -04:00
parent 45f8d675d3
commit 5b5d73a652
6 changed files with 37 additions and 7 deletions

View File

@@ -451,6 +451,11 @@ namespace mongo {
b.append( "allPlans", arr );
return b.obj();
}
QueryPlanSet::PlanPtr QueryPlanSet::getBestGuess() const {
assert( plans_.size() );
return plans_[0];
}
QueryPlanSet::Runner::Runner( QueryPlanSet &plans, QueryOp &op ) :
op_( op ),