For bigger installations query all builds can run out of memory on hub side. Query these in 50k chunks.
Fixes: https://pagure.io/koji/issue/1587
:thumbsup:
There's a stray debugging print call in there
At some point we probably need to consolidate the chunked builds code, since we have different versions of it different places (including in koji-tools), but I don't think we have to make that part of this PR.
Also, it would be nice to have a guaranteed stable way of doing these chunked queries. At the moment, it's technically possible to miss a build or see a duplicate if the query results change in the middle. Again, probably something to tackle separately.
I've filed #1628 to track my comments above.
Otherwise looks fine and seems to be working here. Just need to drop the stray print()
print()
rebased onto 462ad65522334cf2c8d68d2383dcdd5ba9defc81
updated
Commit bf624f56 fixes this pull-request
Pull-Request has been merged by tkopecek
For bigger installations query all builds can run out of memory on hub
side. Query these in 50k chunks.
Fixes: https://pagure.io/koji/issue/1587