-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix/optimize preview cleanup query #40801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
pako81
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: