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

Copy and pasting large JSON causes screen to flash for many seconds.

    • Not Needed
    • Iteration Barcelona

      Problem Description

      When I copy large JSON, the screen flashes for many seconds.

      Steps to Reproduce

      Copy and paste the following test into the mongosh shell.

      aggs = [{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": "foobar", "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": "foobar", "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$lookup": {"from": 0, "pipeline": [[{"$match": {"a": {"$regex": ".*a.*/"}}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}, {"$group": {"_id": 1, "foo": {"$max": "$$_id"}}}]]}}]
      

      Expected Results

      The text is entered quickly and does not flash repeatedly.

      Actual Results

      Takes a very long time with the shell flashing many times.

      Additional Notes

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            kevin.arhelger@mongodb.com Kevin Arhelger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: