Plugin shows "Query not using index" warning on queries without any filters

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 0.1.0
    • Affects Version/s: 0.1.0
    • Component/s: None
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed
    • Developer Tools

      Problem Statement/Rationale

      When there are no filters, the query will always be a collection scan and indexes will never be involved. We should not warn for query not using indexes or even ineffective index when the inspected query has no filters.

      Similarly we should also not display the status inlay of missing index when the query does not have filters.

      Please be sure to attach relevant logs with any sensitive data redacted.
      How to retrieve logs for: Compass; Shell

      Steps to Reproduce

      • Write a query without any filters
      • Go to plugin sidebar and see that the plugin warns about missing index for that query

        Expected Results

      What do you expect to happen?

      Actual Results

      What do you observe is happening?

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            Himanshu Singh
            Reporter:
            Himanshu Singh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: