From 52fada81f84077be2e564894a140a1b2b7cdd307 Mon Sep 17 00:00:00 2001 From: "Ben Sheldon [he/him]" Date: Thu, 18 Jul 2024 17:54:09 -0700 Subject: [PATCH] Fix N+1 on dashboard batches index page --- app/views/good_job/batches/_table.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/good_job/batches/_table.erb b/app/views/good_job/batches/_table.erb index 71588c5c..e1a2f6df 100644 --- a/app/views/good_job/batches/_table.erb +++ b/app/views/good_job/batches/_table.erb @@ -56,7 +56,7 @@
<%= t "good_job.models.batch.jobs" %>
- <%= batch.jobs.count %> + <%= batch.jobs.size %>
<%= tag.button type: "button", class: "btn btn-sm text-muted", role: "button",