CountApproximate uses ConstantsTrait
The values of the `countApproximate` option of the AQL `SEARCH` operation, controlling how the total row count is calculated when the `fullCount` query option is enabled or a `COLLECT WITH COUNT` clause is executed — used as the {@see \oihana\arango\db\options\SearchOptions::$countApproximate} value.
Tags
Table of Contents
Constants
- COST : string = 'cost'
- Use a cost-based approximation: rows are not enumerated, the approximate count is returned with O(1) complexity. Precise if the `SEARCH` condition is empty or a single term query, the usual View eventual consistency aside.
- EXACT : string = 'exact'
- Enumerate the rows for a precise count (server default).
Constants
COST
Use a cost-based approximation: rows are not enumerated, the approximate count is returned with O(1) complexity. Precise if the `SEARCH` condition is empty or a single term query, the usual View eventual consistency aside.
public
string
COST
= 'cost'
EXACT
Enumerate the rows for a precise count (server default).
public
string
EXACT
= 'exact'