fix/optimize preview cleanup query#40801
Conversation
pako81
left a comment
There was a problem hiding this comment.
Manually tested against MariaDB and can indeed confirm only relevant thumbnails are removed. However, CI fails at https://drone.owncloud.com/owncloud/core/38529/30/8. Maybe special care has to be taken for the query when running it on Oracle DB.
|
https://drone.owncloud.com/owncloud/core/38533/20/8 And locally I get: I am using mySQL - the unit tests on mySQL and the oldest mariaDB 10.2 are failing. They do not seem to like |
|
Looks good. I have some acceptance test scenarios that fail on master and pass with this fixed code - good. I have put those in a separate PR #40816 so as not to mess up your branch. @mtillberg you could squash the commits here - the code is pretty tidy now, so I don't think that we need the "development commit history". |
93c3e71 to
0cc0738
Compare
|
I squashed and rebased. Anyone please review - maybe @jvillafanez This fixes/improves the cleanup of previews/thumbnails. PR #40816 has acceptance test scenarios that confirm that this works. That PR can be merged straight after this one. |
|
SonarCloud Quality Gate failed. |








Description
Fix to PreviewCleanup query
Related Issue
Motivation and Context
Keeps the faster response time, returns the correct data, prevents unnecessary thumbnail deletes/recreations.
How Has This Been Tested?
Updated lib/private/PreviewCleanup.php with new query
ran occ previews:cleanup
saw that only the correct thunbnails were deleted.
Test run against MariaDB 10.11.3
Types of changes
Checklist: