As part of
This works well in most cases, but unfortunately still breaks down not when there are too many mediums, but too many tracks on a medium (especially if those tracks have relationships). We even had to block one such release from being accessed back in March (because it had 1200+ tracks and drove up the load average on our servers).
In order to resolve this, we'll have to start paging tracks and have a limit on the number of tracks that can be loaded on a release page initially (e.g. 10 mediums, 100 tracks). The page size can be high enough (I suggest 100) that it won't be hit on almost any release. By my count, only 2,350 releases currently meet this criteria.