mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
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.