We are currently investigating what is going on with our Umbraco 8 application because of the high CPU usage. We tried to do the debugging using Diagnostic tools provided by Microsoft Visual Studio 2019.
Apparently, we found high CPU usage in the code to get data from Database. One of the examples :
For your information, we never modified the original Umbraco tables. We did add several tables to the Umbraco database, and did the model mapping like so :
Is there anything we did wrong that caused this issue ?
Thank you.
One thing I can see that might be suspect is that you have a binary field CVThumbnail being returned in your query - this can be expensive. Only return the fields you actually need.
High CPU Usage on NPoco library
Hi Umbraco,
We are currently investigating what is going on with our Umbraco 8 application because of the high CPU usage. We tried to do the debugging using Diagnostic tools provided by Microsoft Visual Studio 2019.
Apparently, we found high CPU usage in the code to get data from Database. One of the examples :
And this is the result from Diagnostic tools :
For your information, we never modified the original Umbraco tables. We did add several tables to the Umbraco database, and did the model mapping like so :
Is there anything we did wrong that caused this issue ? Thank you.
What's the raw SQL query that this is producing?
One thing I can see that might be suspect is that you have a binary field
CVThumbnail
being returned in your query - this can be expensive. Only return the fields you actually need.Also try running the raw query in SQL, if it is slow maybe you need some indexes
is working on a reply...