Marcel Klehr
1448063ffd
fix(systemtags): Keep non-existing index
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-06-30 14:55:36 +02:00
Marcel Klehr
8c11c9055a
fix(systemtags): Move index creation from new migration to existing original migration
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-06-30 14:55:36 +02:00
Marcel Klehr
ddf296f76f
fix(systemtags): Add missing systemtags index
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-06-30 14:55:36 +02:00
Robin Appelman
b9f47232ca
add new index in repair step instead of on-migrate
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-31 16:15:51 +02:00
Robin Appelman
0b40b11289
allow storing multiple mounts for the same rootid in the mount cache
...
currently `[$userId, $rootId]` is used as the unique key for storing mounts in the mount cache,
however there are cases where the same rootid is mounted in multiple places for a user which currently leads to not all of those mounts being added to the cache.
Previously this didn't matter as the mount cache was only used to list users with access to a specific file, so a user having access to the file multiple times didn' change anything.
With 24 the mount cache is used for more cases and multiple mounts for the same id becomes relevant.
While I think there isn't a real negative effect atm besides missing the optimized path we should ensure that the mounts are properly listed
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-31 16:15:47 +02:00
Louis Chemineau
dc1c7dd1b0
Add parent index on filecache
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-04-04 09:54:29 +00:00
Simon L
69828a5b04
add a safeguard for Version23000Date20210721100600.php
...
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-02-01 07:58:15 +00:00
Joas Schilling
37cca49630
Fix migration parameter handling
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-10-13 18:01:43 +02:00
Arthur Schiwon
982534349a
fix querybuilder instance recuse
...
...and execute delete query
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-10-13 18:01:38 +02:00
Christopher Ng
61d2937bf4
Delete theming background preferences
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-10-13 18:01:34 +02:00
Joas Schilling
5c7613fd67
New code being new
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-10-13 18:01:28 +02:00
Joas Schilling
10cf013e19
Fix SQL errors
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-10-13 18:01:15 +02:00
Christopher Ng
df218bc4db
Fix missing background on upgrade
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-10-13 18:01:05 +02:00
timm2k
14d3b6f021
Update Version24000Date20220404230027.php
...
Signed-off-by: timm2k <timm2k@gmx.de>
2022-09-15 07:58:32 +02:00
Marcel Klehr
047cc708d4
DB mounts table: Add index for mount_provider_class
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2022-08-01 14:27:34 +02:00
Vitor Mattos
c59b0c2ff7
Add comments expire date
...
https://github.com/nextcloud/spreed/pull/7327
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-06-15 11:58:29 -03:00
Vincent Petry
7f660674de
Add new share attributes column
...
To store more extended permissions in the future.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-06-08 08:46:23 +02:00
Joas Schilling
d2633c3ad6
Fix older migrations to the version pattern
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-25 09:39:56 +02:00
Joas Schilling
5cacc594a0
Add missing index
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-25 09:38:31 +02:00
Julius Härtl
f4135c72f5
Merge pull request #31047 from nextcloud/enh/preferences-index
...
Additional index on oc_preferences to make queries without a user filter faster
2022-04-21 09:59:04 +02:00
Julius Härtl
7fbd93b2ad
Additional index on oc_preferences to make sure that gettingh values without a user filter is fast
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-19 12:37:36 +02:00
Carl Schwan
7817845538
Add a metadata service to store file metadata
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-13 14:06:29 +02:00
Joas Schilling
3031eb1c07
Update Version24000Date20211222112246.php
2022-03-15 16:30:28 +01:00
Robin Appelman
cfb7923e08
store mountprovider for each mount in the mounts table
...
this enabled more fine grained filesystem setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-02-23 18:02:33 +01:00
Vincent Petry
6f32be1cf6
Merge pull request #31042 from nextcloud/enh/direct_edit_index
...
Add index for direct editing cleanup job
2022-02-10 18:00:29 +01:00
Joas Schilling
b765f79368
Allow apps to specify if their background job can be delayed
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-02-07 13:54:54 +01:00
Julius Härtl
415294e345
Add index for direct editing cleanup job
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-02-07 09:25:27 +01:00
Joas Schilling
fcb3e9a071
Add a primary key to ratelimit_entries table
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-01-28 16:55:16 +01:00
Vitor Mattos
9a2736bbc9
Fix column size to work with Oracle. Add unit tests
...
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-01-21 08:37:07 -03:00
Vitor Mattos
9efbc9c1d5
Add comments reactions
...
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-01-21 08:37:04 -03:00
Julius Härtl
99b2cf8339
Add hashed attribute column for indexed job existence check
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-01-18 14:01:24 +01:00
Carl Schwan
6312c0df69
Check style update
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-13 00:19:07 +01:00
Christoph Wurst
ed84f07784
Add missing index for propertypath only queries against properties
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-12-23 15:51:50 +01:00
Christopher Ng
c85f78db69
Migrate profile_config id column to bigint
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-12-14 00:14:13 +00:00
Christopher Ng
c85ab47a11
Use bigint for autoincremented column
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-12-14 00:12:40 +00:00
Julius Härtl
c92ac34711
Use proper app id (settings instead of core)
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-12-13 19:20:10 +00:00
Joas Schilling
99006be126
Lowercase all core=>email values
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-12-13 19:20:10 +00:00
Pytal
92d3520106
Merge pull request #29996 from zordsdavini/patch-1
2021-12-09 14:56:06 -08:00
Pytal
ac5bc2277e
Update core/Migrations/Version23000Date20211203110726.php
...
Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-12-09 16:32:53 +00:00
Christopher Ng
e224401a62
Fix relation "user_id" already exists migration error
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-12-03 20:29:53 +00:00
Joas Schilling
536a812de4
Add an index for selecting the next job
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-12-01 23:57:40 +01:00
Robin Appelman
5155f2b0c5
Merge pull request #28541 from nextcloud/path-prefix-index2
...
add a prefix index to filecache.path, attempt 2
2021-10-19 14:41:23 +00:00
Christopher Ng
309354852f
Profile backend
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-10-19 04:59:35 +00:00
Robin Appelman
695326534c
disable path prefix index on postgresql for now
...
having the index work properly for the queries we need it for requires some additional options which dbal does not support at the momement.
to prevent making it harder to add the correct index later on we don't create the index for now on postgresql
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-08 18:39:22 +02:00
Robin Appelman
abd6b354ac
add a prefix index to filecache.path
...
The reason that `filecache.path` hasn't had an index added is the mysql limitation of ~1kb for indexeded fields,
which is to small for the `path`, however mysql supports indexing only the first N bytes of a column instead of the entire column,
allowing us to add an index even if the column is to long.
Because the index doesn't cover the entire column it can't be used in all situations where a normal index would be used, but it does cover the `path like 'folder/path/%'` queries that are used in various places.
Sqlite and Postgresql don't support prefix indexes, but they also don't have the 1kb limit and DBAL handles the differences in index creation.
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-08 18:38:25 +02:00
Robin Appelman
6502dfae34
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>
2021-10-07 16:11:49 +02:00
Carl Schwan
6958d8005a
Add admin privilege delegation for admin settings
...
This makes it possible for selected groups to access some settings
pages.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-09-29 21:43:31 +02:00
Lukas Reschke
474a5b55d3
Implement review feedback
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-09-13 11:01:35 +02:00
Lukas Reschke
358eaba7dd
Apply suggestions from code review
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
2021-09-13 10:43:01 +02:00
Lukas Reschke
471167019c
Implement PR review feedback
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-09-07 18:03:34 +02:00