Solving possible race condition issues with certain datasets

4 jobs for legacydb in 19 minutes and 48 seconds (queued for 7 seconds)