-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 0.11.0
-
Component/s: CLI Module
-
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
- is duplicated by
-
MONGOSH-730 Prompt refresh is visible and causes annoying flicker
- Closed
- is related to
-
MONGOSH-687 Autocomplete output on paste
- Closed
-
MONGOSH-726 Syntax highlighting for numbers is not readable
- Closed
-
MONGOSH-727 Shell gets into a unrecoverable bad state when pasting in invalid code
- Closed