mirror of https://gitee.com/bigwinds/arangodb
mark AQL functions FULLTEXT, NEAR, WITHIN, WITHIN_RECTANGLE as cacheable (#9771)
This commit is contained in:
parent
2c47fd9943
commit
ba02dc4b4d
|
@ -443,14 +443,13 @@ void AqlFunctionFeature::addMiscFunctions() {
|
|||
add({"WARN", ".,.", Function::makeFlags(FF::CanRunOnDBServer), &Functions::Warn}); // not deterministic and not cacheable
|
||||
|
||||
// NEAR, WITHIN, WITHIN_RECTANGLE and FULLTEXT are replaced by the AQL
|
||||
// optimizer with collection-based subqueries they are all not marked as
|
||||
// non-deterministic and non-cacheable here as they refer to documents
|
||||
// note further that all of these function call will be replaced by equivalent
|
||||
// subqueries by the optimizer
|
||||
add({"NEAR", ".h,.,.|.,.", Function::makeFlags(), &Functions::NotImplemented});
|
||||
add({"WITHIN", ".h,.,.,.|.", Function::makeFlags(), &Functions::NotImplemented});
|
||||
add({"WITHIN_RECTANGLE", "h.,.,.,.,.", Function::makeFlags(), &Functions::NotImplemented});
|
||||
add({"FULLTEXT", ".h,.,.|.", Function::makeFlags(), &Functions::NotImplemented});
|
||||
// optimizer with collection-/index-based subqueries. they are all
|
||||
// marked as deterministic and cacheable here as they are just
|
||||
// placeholders for collection/index accesses nowaways.
|
||||
add({"NEAR", ".h,.,.|.,.", Function::makeFlags(FF::Cacheable), &Functions::NotImplemented});
|
||||
add({"WITHIN", ".h,.,.,.|.", Function::makeFlags(FF::Cacheable), &Functions::NotImplemented});
|
||||
add({"WITHIN_RECTANGLE", "h.,.,.,.,.", Function::makeFlags(FF::Cacheable), &Functions::NotImplemented});
|
||||
add({"FULLTEXT", ".h,.,.|.", Function::makeFlags(FF::Cacheable), &Functions::NotImplemented});
|
||||
}
|
||||
|
||||
} // namespace aql
|
||||
|
|
Loading…
Reference in New Issue