-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Environment:OS:
node.js / npm versions:
Additional info:
-
2
-
Not Needed
-
Developer Tools
By default we have maxOutputLines == 1000. Once you get to 1000 elements it starts to splice the output to only keep the last 1000. But then the same array index maps to a different output entry component. Which means all of them get re-rendered at once.
By adding a persistent key to each shell output entry react won't lose track of or think that the components completely changed.
Just to note: The shell will still slow down gradually until it gets to maxOutputLines, but at least it won't break completely. The speed then stabilises at maxOutputLines because we cap them.
- is related to
-
COMPASS-7567 Running at 100% CPU for a script that inserts 5k records on slow connection
-
- Closed
-