nextcloud/core/Command
Robin Appelman 9f2b50db19
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:45:08 +01:00
..
App Update php licenses 2021-06-04 22:02:41 +02:00
Background Add return value to all commands 2020-06-26 14:54:51 +02:00
Broadcast Update php licenses 2021-06-04 22:02:41 +02:00
Config Update php licenses 2021-06-04 22:02:41 +02:00
Db add better index for finding unindexed paths 2022-01-13 15:45:08 +01:00
Encryption Update php licenses 2021-06-04 22:02:41 +02:00
Group Convert command option defaults to strings 2021-06-09 13:25:31 +02:00
Integrity Update php licenses 2021-06-04 22:02:41 +02:00
L10n Update php licenses 2021-06-04 22:02:41 +02:00
Log Fix typing error 2021-06-21 14:14:37 +02:00
Maintenance Update php licenses 2021-06-04 22:02:41 +02:00
Preview Allow to delete non-migrated previews instead of moving them 2021-12-09 23:03:11 +00:00
Security Move DateTime::ATOM to DateTimeInterface::ATOM 2021-06-23 15:28:07 +02:00
SystemTag Update php licenses 2021-06-04 22:02:41 +02:00
TwoFactorAuth Update php licenses 2021-06-04 22:02:41 +02:00
User Add active user count to occ user:report 2021-11-24 14:03:53 +00:00
Base.php Update php licenses 2021-06-04 22:02:41 +02:00
Check.php Update php licenses 2021-06-04 22:02:41 +02:00
InterruptedException.php Update php licenses 2021-06-04 22:02:41 +02:00
Status.php Update php licenses 2021-06-04 22:02:41 +02:00
Upgrade.php Do not print verbose info about app updates if there are none 2021-11-28 04:27:08 +01:00