nextcloud-server/core/Migrations
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
..
Version13000Date20170705121758.php Migrate internal classes to the OCP db col types 2021-01-12 14:09:13 +07:00
Version13000Date20170718121200.php add better index for finding unindexed paths 2022-01-13 15:48:14 +07:00
Version13000Date20170814074715.php
Version13000Date20170919121250.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +07:00
Version13000Date20170926101637.php
Version14000Date20180129121024.php
Version14000Date20180404140050.php Remove @suppress SqlInjectionChecker 2020-09-16 15:53:56 +07:00
Version14000Date20180516101403.php
Version14000Date20180518120534.php Drop authtoken_version_index 2021-01-20 09:34:41 +07:00
Version14000Date20180522074438.php
Version14000Date20180626223656.php Update license headers for 19 2020-04-29 11:57:22 +07:00
Version14000Date20180710092004.php Migrate internal classes to the OCP db col types 2021-01-12 14:09:13 +07:00
Version14000Date20180712153140.php
Version15000Date20180926101451.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +07:00
Version15000Date20181015062942.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +07:00
Version15000Date20181029084625.php
Version16000Date20190207141427.php Migrate internal classes to the OCP db col types 2021-01-12 14:09:13 +07:00
Version16000Date20190212081545.php Migrate internal classes to the OCP db col types 2021-01-12 14:09:13 +07:00
Version16000Date20190427105638.php Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +07:00
Version16000Date20190428150708.php Migrate internal classes to the OCP db col types 2021-01-12 14:09:13 +07:00
Version17000Date20190514105811.php Migrate internal classes to the OCP db col types 2021-01-12 14:09:13 +07:00
Version18000Date20190920085628.php Migrate internal classes to the OCP db col types 2021-01-12 14:09:13 +07:00
Version18000Date20191014105105.php Migrate internal classes to the OCP db col types 2021-01-12 14:09:13 +07:00
Version18000Date20191204114856.php Create primary keys on all tables and add a command to create the afterwards 2020-11-10 15:36:27 +07:00
Version19000Date20200211083441.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +07:00
Version20000Date20201109081915.php Fix CS 2020-11-10 15:43:34 +07:00
Version20000Date20201109081918.php Migrate internal classes to the OCP db col types 2021-01-12 14:09:13 +07:00
Version20000Date20201109081919.php Fix CS 2020-11-10 15:43:34 +07:00
Version20000Date20201111081915.php Also make direct_edit.accessed nullable 2020-11-11 14:46:06 +07:00
Version21000Date20201120141228.php Don't remove assignable column for now 2021-01-11 11:58:14 +07:00
Version21000Date20201202095923.php Migrate internal classes to the OCP db col types 2021-01-12 14:09:13 +07:00
Version21000Date20210119195004.php Drop authtoken_version_index 2021-01-20 09:34:41 +07:00
Version21000Date20210309185126.php Add a KnownUsers database with model 2021-03-11 08:38:55 +07:00
Version21000Date20210309185127.php Add missing index on the user column 2021-03-22 20:07:53 +07:00
Version23000Date20210906132259.php Add database ratelimiting backend 2021-09-13 16:45:54 +07:00