From 6dfca71b3baebcda616334a876881a70827ac728 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Fri, 19 Jun 2020 11:27:57 -0700 Subject: [PATCH] Add a key to the alloc table on the task group detail page Adding keys tells Ember to rerender matching entries instead of destroying and recreating. Without this key, every time the allocation collection changes, every allocation row gets destroyed and recreated. This happens a lot, since each allocation needs to be reloaded which dirties the collection. Since allocation rows fetch stats on init, each of these many many renders results in a stats request. By using key and rerendering matching records, this all goes away. Since the rows aren't being destroyed and recreated, the init stats request isn't being made overnumerously. --- ui/app/templates/jobs/job/task-group.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/templates/jobs/job/task-group.hbs b/ui/app/templates/jobs/job/task-group.hbs index 307cd2bbff7..a915b1b5f1f 100644 --- a/ui/app/templates/jobs/job/task-group.hbs +++ b/ui/app/templates/jobs/job/task-group.hbs @@ -98,7 +98,7 @@ CPU Memory - +