Uh oh!
There was an error while loading. Please reload this page.
feat: remove orphaned entries from filecache_extended - #38933
Conversation
Uh oh!
There was an error while loading. Please reload this page.
4c3a6c7 to
c84aef5Compare| ->setName('files:cleanup') | ||
| ->setDescription('cleanup filecache'); | ||
| ->setDescription('cleanup filecache') | ||
| ->addOption('filecache-extended', null, InputOption::VALUE_NONE, 'remove orphaned entries from filecache_extended'); |
There was a problem hiding this comment.
Any reason to not make this run by default?
There was a problem hiding this comment.
Technically, no. The execution for the left join seems quick, but I only tested with ~1000 files.
My motivation, to hide it behind a flag, is my incomplete knowledge about filecache and especially external storages. However, I can't think of a case, why we would have a record in filecache_extended without a matching one in filecache.
We can run it by default if you think it should ;)
There was a problem hiding this comment.
Switched to running it by default and having the flag disable it in case we ever find cases where that is required
juliusknorr
left a comment
There was a problem hiding this comment.
Code looks good, small question inside :)
kesselb
commented
Nov 14, 2023
Moving to 29 |
c84aef5 to
da57476Compareda57476 to
9fb2258Comparekesselb
commented
Feb 17, 2024
Howdy 👋 Thank you for taking care, I almost forgot about it 🙈 I don't remember if I tested it with OCI back then. |
9fb2258 to
3b73c89Compareskjnldsv
commented
Feb 24, 2024
|
63353ba to
0635c24Comparekesselb
commented
Mar 28, 2024
Moving to 30 |
0635c24 to
3e0299fCompareSigned-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
3e0299f to
1d34f0aCompare
Summary
Test scenario:
select * from oc_filecache_extended left join oc_filecache on oc_filecache_extended.fileid = oc_filecache.fileid where oc_filecache.fileid is null;select * from oc_filecache_extended left join oc_filecache on oc_filecache_extended.fileid = oc_filecache.fileid where oc_filecache.fileid is null;server/lib/private/Files/Cache/Storage.php
Line 222 in e69c7c4
Best would be to clear filecache_extended when deleting the storage.
TODO
Checklist