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

XMLWordPrintableJSON

    • Iteration Barcelona
    • Not Needed

      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
              Reporter:
              Kevin Arhelger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: