The path or MPTT queries are faster than the recursive CTE only when the number of OR-ed clauses does not require more index scan than the CTE. This number can be approximate to the depth of the tree. Log10 is used to estimate the depth of the tree if it has an average of 10 children per node. Closes #14078
trytond ======= The server of Tryton. Tryton is business software, ideal for companies of any size, easy to use, complete and 100% Open Source. It provides modularity, scalability and security.