Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12938

Expose and Pretty Print CanonicalQuery

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.0-rc0
    • Component/s: Querying
    • Labels:
      None
    • Query

      If I read the source correctly, CanonicalQuery is used as the [query] "plan cache key". It'd be nice to expose functionality to convert an arbitrary query to its shape.

      Currently, it appears like strings like "aneqorderbyeqquery", "inb", or "oreqainb" are outputted for queries on a collection of documents containing fields "a" and "b" (where b is an array of integers).

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            stephen.lee Stephen Lee
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: