Skip to content

Jobs compress: Use explicit iterator over jobs

By default enumerate(jobs) would fetch ALL THE JOBS from the database. This caused an excessive amount of RAM usage.

By explicitly calling the iterator the enumeration will become lazy and only 100 jobs at the time would be fetched from database.

Merge request reports