mirror of https://gitee.com/bigwinds/arangodb
don't tell GatherNode to sort data from an unsorted index
This commit is contained in:
parent
eb89982279
commit
f5a6818cdb
|
@ -2350,6 +2350,7 @@ void arangodb::aql::scatterInClusterRule(Optimizer* opt, ExecutionPlan* plan,
|
|||
|
||||
// Using Index for sort only works if all indexes are equal.
|
||||
auto first = allIndexes[0].getIndex();
|
||||
if (first->isSorted()) {
|
||||
for (auto const& path : first->fieldNames()) {
|
||||
elements.emplace_back(sortVariable, !isSortReverse, path);
|
||||
}
|
||||
|
@ -2359,6 +2360,7 @@ void arangodb::aql::scatterInClusterRule(Optimizer* opt, ExecutionPlan* plan,
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (nodeType == ExecutionNode::INSERT ||
|
||||
nodeType == ExecutionNode::UPDATE ||
|
||||
nodeType == ExecutionNode::REPLACE ||
|
||||
|
|
Loading…
Reference in New Issue