Repository navigation
do propagation in a single query - #22648
Conversation
|
Fixes #18359 |
|
very sweet! |
|
This looks nice but I don't understand the part about "GREATEST". Can you explain how it would behave in the case of regular propagation and touch ? |
If a folder has an mtime greater than the file being uploaded we shouldn't change the folder mtime to something lower, the |
|
9.0? I would rather put this into 9.1 |
|
I agree... 9.1 or then 9.0.1 with lots of careful testing as it affects etag propagation. @karlitschek @cmonteroluque |
|
0.x releases are for critical bugfixes only. So I suggest 9.1 |
| return $builder->expr()->literal($hash); | ||
| }, $parentHashes); | ||
|
|
||
| $builder->update('filecache') |
There was a problem hiding this comment.
Please use $builder->createNamedParameter( instead of :mtime
|
related bug is a sev1 for 9.0 |
|
@cmonteroluque I agree but this is too risky for a last minute change IMHO. |
|
Just posted #18359 (comment) for an additional/alternative fix. Propagating etags for encryption keys doesn't make sense anyway. |
|
As discussed with @cmonteroluque, moving this to 9.0.1 |
891d964 to
f1556b1
Compare
|
Moving to 9.1 as per original ticket. CC @cmonteroluque |
|
@icewind1991 please rebase and address the comments |
39a0b6f to
c987680
Compare
Done |
|
@PVince81 @nickvergessen @rullzer @schiesbn Please review :) |
|
Tested with Mariadb with encryption enabled, with shares. Seems to work fine 👍 |
|
Tested and works 👍 |
c987680 to
dbfdc62
Compare
|
Rebased to retrigger Ci |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
(actually two queries but don't tell anyone that)
tricks in use
GREATESTto only increate folder mtimes in case of atouchpath_hashinstead offileidto prevent having to traverse up the filetree to get all parent idsWHERE size>-1to prevent having to do the check for each entryImproves upload performance anywhere from ~14% (comparison) for uploading to the root folder to over ~35% (comparison) when uploading to a deeper nested folder
cc @PVince81