mirror of https://gitee.com/bigwinds/arangodb
only do not use geoindex in inner loop if we want to sort
This commit is contained in:
parent
32e1c7eac4
commit
004da0c614
|
@ -4381,10 +4381,11 @@ bool applyGeoOptimization(bool near, ExecutionPlan* plan, GeoIndexInfo& first, G
|
|||
}
|
||||
|
||||
// We are not allowed to be a inner loop
|
||||
if(first.collectionNode->isInInnerLoop()){
|
||||
if(first.collectionNode->isInInnerLoop() && first.executionNodeType == EN::SORT){
|
||||
return false;
|
||||
}
|
||||
|
||||
LOG_TOPIC(DEBUG, Logger::DEVEL) << "NO INNER LOOP";
|
||||
// //LOG_TOPIC(DEBUG, Logger::DEVEL) << " attributes: " << res.longitude[0]
|
||||
// // << ", " << res.longitude
|
||||
// // << " of collection:" << res.collectionNode->collection()->getName()
|
||||
|
@ -4515,11 +4516,8 @@ void arangodb::aql::geoIndexRule(Optimizer* opt,
|
|||
}
|
||||
|
||||
}
|
||||
//if (modified){
|
||||
// opt->addPlan(newPlan, rule, modified);
|
||||
//} else {
|
||||
|
||||
opt->addPlan(plan, rule, modified);
|
||||
//}
|
||||
|
||||
LOG_TOPIC(DEBUG, Logger::DEVEL) << "EXIT GEO RULE - modified: " << modified;
|
||||
//LOG_TOPIC(DEBUG, Logger::DEVEL) << "";
|
||||
|
|
|
@ -209,7 +209,7 @@ function optimizerRuleTestSuite() {
|
|||
, cluster : false
|
||||
, sort : false
|
||||
, filter : true
|
||||
, index : false
|
||||
, index : true
|
||||
},
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in New Issue