-
Notifications
You must be signed in to change notification settings - Fork 39
Improve iterators #516
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
Improve iterators #516
Conversation
4952e12 to
6c2206e
Compare
|
Please don't forget to set the milestone when opening a PR 😃 |
|
What's the outlook on the timeline for this one? I just had an update basically time out and break itself when I decided to look at the updater code - only to find out that it recurses through all files (including user data and old backups) before doing the filtering. |
|
No timeline as I don't find time to work on this… |
Even with this flag it still hangs/iterates at "Delete old files ..." unfortunately, so it is only a partial solution. (My updates take 1+ hour, too.) |
Understandable. |
|
My last update from 29.0.1 to 29.0.2 was much faster though (still with |
|
Is there a way I can test this fix on my own instance? Looks like the change should work and be safe enough so I'd like to give it a try if possible |
@tovine That's not an easy one to test since it should fix several issues.
|
My install is at least large enough that each of the backup files and delete old files steps are painfully slow (we're talking hours), so I should definitely notice if this works in that regard. |
|
Awsome to see that this has been merged now - is there any way to download the newest updater so that it will be the one used for my next update? Is it enough to just grab the latest |
|
@Altahrim and others: Thanks for the progress! I just tested it on hostpoint (with the with the replaced Manually enabling the maintenance mode in the config file and pressing Afterwards I tested the update to @tovine |
Is that a PHP error or a JS one from the UI? |
I think it’s a JS error and could be fixed by #591 |
JS |
I just tried now (downloaded latest master version of index.php and updater.phar) and it worked like a charm - the complete update process (including waiting for me who was slow to press enter) took just over 2.5 minutes, whereas previously it would typically be stuck at the backup and delete old files steps for a few hours each. Thanks a lot for fixing this, @Altahrim and @come-nc! ❤️ PS: FYI this update was run in the command line using updater.phar
|
|
Big 👍 from me too, upgrade speed went from 30+ minutes to less than 30 seconds! thank you very much! |
|
/backport e23bd54 to stable31 |
|
/backport e23bd54 to stable30 |
See:
createBackup()#507deleteOldFiles()#397