Massive speed up add_minute_for_each_prediction

Without locking up the database *too* much.

[#76374644]