updated has_metrics to fetch records in batches (find_each) when running UpdateMetrics