Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-2021

Once you get to maxOutputLines in browser-repl, the shell hangs

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.2
    • 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.

            Assignee:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Reporter:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: