Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-10404

Limit the total number of tracks that can be returned in a WS release list

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2019-10-14
    • Component/s: Web service
    • Labels:
      None

      Description

      Release browse requests, or any type of request that returns a list of releases, can currently return a nearly-unbounded number of tracks. Due to the amount of processing required to load and create so many objects on the server, this can cause the request to time out, almost certainly so if additional inc parameters are specified for the tracks (recordings, artist-credits). This is particularly troublesome for endpoints like /ws/2/discid which can be provided with a very large TOC to return releases for.

      I'd propose to limit the number of releases returned in these requests such that the total number of tracks doesn't exceed some sane limit, like 500. We should always return at least one release (and never partially), but stop once the number of tracks exceeds 500.

        Attachments

          Activity

            People

            • Assignee:
              bitmap Michael Wiencek
              Reporter:
              bitmap Michael Wiencek
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                2019-10-14