mirror of
https://github.com/suitenumerique/docs.git
synced 2026-09-14 05:37:53 +02:00
Comparing path with LEFT(value, LENGTH(path)) makes a sequential scan on all the Document table, the more this table grow, the more the query using it will be slow. We dediced instead to lookup on the path extracting all ancestors path for a given document and then make a path IN statement to use the index existing on the path column.