Solving NuGet Query Performance Problems

Symptom: You're experiencing very slow performance from NuGet searches in Visual Studio or using the NuGet Package Explorer

Solution:

Check the size of the sonatype-work/nexus/nuget/odata.h2.db file.  If it is very large (as in over 1Gb) then you will likely see poor performance when searching for NuGet components.  The typical cause for large size is having a "download nuget feed" task scheduled for your nuget.org proxy repository with "fetch all versions" enabled, over time this can cause the NuGet database to grow to where it causes performance problems.

This task is no longer necessary in version 2.10.x and later.    If you have this task, remove or disable it, and then rebuild the NuGet database.

To rebuild the database, shut down Nexus, remove or rename sonatype-work/nexus/nuget, and then restart.  After starting, schedule "rebuild nuget feed" tasks to run against any hosted NuGet repositories you have.
 
If you're still experiencing problems after performing the above procedure then please contact our support team.
Have more questions? Submit a request

2 Comments

  • 0
    Avatar
    Michael Gingell

    Thanks for this!  I was starting to get lots of complaints from users....

     - Mike

  • 0
    Avatar
    Peter Lynch

    We are closing this article for comments.

    If you have a support license, please contact us by submitting a support ticket.

    If you do not have a support license, please use our Nexus Users List or our other free support resources.

Article is closed for comments.
Powered by Zendesk