8000 useIndexForSort: · arangodb/arangodb@8bfb715 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8bfb715

Browse files
committed
useIndexForSort:
- redirect to pass #5 here too, so now possible obsolete CalculaionNodes are removed by the removeUnnecessaryCalculationsRule
1 parent d86953c commit 8bfb715

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

arangod/Aql/OptimizerRules.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,8 +940,11 @@ class sortToIndexNode : public WalkerWorker<ExecutionNode> {
940940

941941
if (idx.fullmatch) { // if the index superseedes the sort, remove it.
942942
_sortNode->removeSortNodeFromPlan(newPlan);
943+
_opt->addPlan(newPlan, Optimizer::RuleLevel::pass5, true);
944+
}
945+
else {
946+
_opt->addPlan(newPlan, level, true);
943947
}
944-
_opt->addPlan(newPlan, level, true);
945948
}
946949
catch (...) {
947950
delete newPlan;

0 commit comments

Comments
 (0)
0