From 31b245fa73e2c56a3961f85b48e7f0d2633e3cb1 Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Wed, 30 Jul 2014 13:18:40 +0200 Subject: [PATCH] comments --- arangod/Aql/QueryAst.cpp | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/arangod/Aql/QueryAst.cpp b/arangod/Aql/QueryAst.cpp index 58459cc122..411088412c 100644 --- a/arangod/Aql/QueryAst.cpp +++ b/arangod/Aql/QueryAst.cpp @@ -1381,27 +1381,12 @@ void QueryAst::optimizeRoot() { continue; } - if (member->type == NODE_TYPE_FOR) { - // peek forward and check if the for contains a FILTER that is always false - bool isEmpty = false; - - for (size_t j = i + 1; j < n; ++j) { - AstNode* sub = _root->getMember(j); - - if (sub == nullptr) { - continue; - } - - if (sub->type == NODE_TYPE_FILTER) { - // TODO: found a FILTER that is always false - isEmpty = true; - } - - if (sub->type == NODE_TYPE_RETURN) { - } - } - } - + // TODO: replace trampoline variables / expressions + // TODO: detect common sub-expressions + // TODO: remove always-true filters + // TODO: remove blocks that contains always-false filters + // TODO: pull up LET assignments + // TODO: pull up FILTER } */ }