Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    GET performance querying using SemVerLevel=2.0.0 very poor on NuGet feed

    Scheduled Pinned Locked Moved Support
    packagesnugetproget
    5 Posts 1 Posters 14 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      What are strategies for improving performance of GET requests that employ the SemVerLevel=2.0.0 flag?

      When comparing the performance of the following request constructions the one using SemVerLevel was orders of magnitude slower that one specifying the same package and a specific version (~20 seconds vs ~20 ms). The number of package versions for the specific package is only in the hundreds, but the feed contains over 100,000 package versions.

      ~20ms

      Id='<package>', Version='<version>'

      ~20s

      ?semVerLevel=2.0.0&$filter=tolower(Id)eq'<package>'

      Is it possible to create an index to improve performance or are there other strategies?

      Product: ProGet
      Version: 4.7.13

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        The problem is not semVerLevel, but tolower(Id).

        Can you remove the toLower()?

        We have special handling for "Id eq 'package'" queries to make them very fast, but when you put "tolower" on there, it disables that, forcing enumeration of every package version and frontend filtering. This is why it's very slow.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          We're using Paket (https://fsprojects.github.io/Paket/) for package resolution and the source code appears to force the tolower(Id), so it won't be that easy to change. Is it possible to similarly support improved performance with "tolower(Id)"?

          It makes sense why the performance is poor if it falls back to full enumeration.

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            As Packet is an "unofficial" and not-Microsoft supported client, we don't test against it. Thus we'd rather not add a pattern predictor/otpimizer to suit their usage, work-around client bugs, etc.

            Intead, I would recommend to submit an issue or pull request to their team; in the past they have been responsive to adding things to make Packet work with ProGet users, such as authentication.

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              I created a ticket with Paket, and they did resolve the issue via an update to their code base. Testing with version 5.6.6 seems to have fixed the issue.

              https://github.com/fsprojects/Paket/issues/2466

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation