After some more debugging (I'd forgotten that the test suite normally sets the batch size to 5, so the batches being retrieved by `getPackageUploads` were the same size on each run and so didn't show any query scaling problems), here's a test diff that exhibits the problem: https://paste.ubuntu.com/p/3gy3mm8pW2/
After some more debugging (I'd forgotten that the test suite normally sets the batch size to 5, so the batches being retrieved by `getPackageUploads` were the same size on each run and so didn't show any query scaling problems), here's a test diff that exhibits the problem: https:/ /paste. ubuntu. com/p/3gy3mm8pW 2/