nextcloud-server/core/Command/Db
Robin Appelman 3a1935b7ff
add better index for finding unindexed paths
for the following query 'SELECT "path" FROM "oc_filecache" WHERE ("storage" = $storage) AND ("size" < 0) ORDER BY "fileid" DESC LIMIT 1;'

currently the database will in some cases decide to priorize the sort by fileid over the filter when picking what index to use, resulting in a much slower query.

by creating an index that allows first sorting by fileid and also filter by storage and size this case will be greatly sped up

Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-01-13 15:48:14 +07:00
..
Migrations Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +07:00
AddMissingColumns.php Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +07:00
AddMissingIndices.php add better index for finding unindexed paths 2022-01-13 15:48:14 +07:00
AddMissingPrimaryKeys.php Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +07:00
ConvertFilecacheBigInt.php Migrate internal classes to the OCP db col types 2021-01-12 14:09:13 +07:00
ConvertMysqlToMB4.php Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +07:00
ConvertType.php Fix #26085 2021-06-09 17:01:07 +07:00