ModuleBuild.current_batch queries for all component builds associated with the module and then filters the component builds using Python. This is inefficient and should just filter using SQL instead.
@mprahl, this appears to be a dupe of #1411 ?
Metadata Update from @mprahl: - Issue close_status updated to: Duplicate - Issue status updated to: Closed (was: Open)
This issue has been migrated to Fedora Forge: https://forge.fedoraproject.org/koji/mbs/issues/1412
Please continue any further discussion there.