Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-302

When the user wants to execute an empty query, pop up a warning box that this is not ideal

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.19.1
    • Affects Version/s: None
    • Component/s: Query Bar
    • None
    • 1
    • Compass Sprint Echidna, Compass Sprint Flamingo

      Broken off from COMPASS-291 and should be implemented after that.

      Show a modal popup to warn the user when they try to run an empty explain {} because that is potentially very expensive on the database and we already know the result: a collection scan.

      Acceptance Criteria:

      • When the user enters an empty query (or uses the default empty query) and hits apply, a modal window should appear with a warning text and 2 buttons, cancel/continue. Only when the user presses continue should the explain be executed.

        1. explain-stupid.gif
          100 kB
          Satyendra Sinha

            Assignee:
            Unassigned Unassigned
            Reporter:
            thomas.rueckstiess@mongodb.com Thomas Rueckstiess
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: