-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Critical Performance Issues Post-Upgrade from Umbraco 11.5.0 to 13.4.1 #16803
Comments
Hi there @piotrbach! Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better. We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.
We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
I encountered the same issue (upgrading from 11.5 to 13.4.0). The 'DeleteVersions' job is blocking everything. However once it's done, the issue is resolved and doesn't come back. To help with the database timeouts and locking issues: Increase the connect timeout of the connectionstring to a big number
Then I let it run for a while. |
Hello Guys, Just letting you know, we have just found a critical performance bottleneck which is caused by refactoring in the #14806. We are going to prepare a new pull request. If you started investigation please hold on :) cc: @nul800sebastiaan, @Zeegaan, @elit0451, @nikolajlauridsen, @leekelleher, @mattbrailsford |
…vestigation of umbraco#16803 - well tested on db with 300k+ nodes
Hi @pvhees and big thanks for your suggestion🤝. Yes, we initially disabled all background services, including 'DeletedVersions,' plus played around with timeouts, but this did not resolve the issue. |
I am not sure why this is a problem at all ? 🤔 The PR just changed the default behavior. But it might be a documentation issue 🤔
Let me know if that helps 😁 |
@Zeegaan Looking at PR #16837 it seems your change from earlier (in #14806) removed a For example, in #14806 this was changed: Your change (without Likewise for this one, it also uses the version without any WHERE clause. |
Hi @Zeegaan, It seems @PerplexDaniel clarified this case even more, but you can still take a look at the critical line you forget during your refactoring:
This is probably only a workaround, but we don't want to go this way, because it could cause another issues. Honestly, the issue is caused by an obvious bug introduced by refactoring performed in #14806 Therefore, we created a new PR #16837 which keeps logic of your PR #14806, but we restored WHERE clauses as needed. I recommend debugging the QueryPaged extension method during publishing a node which contains some children: BTW, I have to mention that I'm a little bit shocked that the performance of basic CRUD operations are not tested enough before releasing a new version, because everything will work as expected on database with a small amount of nodes even there is a critical performance issue like this. |
@PerplexDaniel Thank you for the clarification, that made it really clear 😁 |
Hi, @Zeegaan I can suggest you to:
As a result the while loop takes forever and it's killing the system. Simply merging PR #16837 is a quick solution here. |
@piotrbach thanks for the debugging steps, it helped during testing 🚀 Fixed in #16837 |
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
13.4.1
Bug summary
After upgrading Umbraco from version 11.5.0 to 13.4.1, we are experiencing critical issues with basic operations such as publishing and unpublishing content.
Additionally, we are often encountering database lock errors.
We have noticed significant changes in the database schema and indexes.
Please let us know if this upgrade/change has been performance-tested on a large volume of data similar to ours.
We would greatly appreciate any guidance or solutions to resolve this critical issue.
cc: @wtct
Specifics
We are managing a large dataset with ~325 000 documents.
We have attempted various solutions to resolve the issue, including:
Disabling nucache local db
Forcing rebuild of Database/Memory Cache
Disabling all custom handlers (ContentPublishingNotificationHandler, ContentUnpublishingNotificationHandler, ContentSavingNotificationHandler, etc.)
Rebuilding database indexes
Disabling DeliveryApi and Webhooks via configuration in appsettings.json
Disabling Content Cleanup Hosted Service to reduce background processes
Additionally, we observed that the upgrade process takes so long that the https://localhost:44392/install view does not redirect after completion.
We can only see from the logs that the process has finished.
When accessing https://localhost:44392/ directly and removing /install, the site still shows 'Website is Under Maintenance'.
Only after restarting Umbraco does the site function normally.
Steps to reproduce
Start with an Umbraco 11.5.0 instance containing 325K documents.
Perform an upgrade to Umbraco 13.4.1.
Attempt to publish or unpublish a document.
Observe the performance and any errors related to database locks.
Expected result / actual result
Expected: Publishing and unpublishing operations should be fast and error-free.
Actual: Operations are ultra-slow slow, and database lock errors occur. Working with CMS is impossible.
The text was updated successfully, but these errors were encountered: