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

Remove FindCommandRequest from CanonicalQuery

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization

      CanonicalQuery is (roughly) our current logical plan for find() queries. It should be possible to create one without going through FindCommandRequest. (It seems like a layering violation: commands are messages that clients and servers use to communicate; CanonicalQuery is a lower-level, more internal, more normalized representation for a query.)

      It looks like CanonicalQuery only depends on FindCommandRequest out of convenience: many options happen to be shared between them, so CanonicalQuery exposes one large getter instead of smaller separate getters. While convenient, this makes it harder to see which information a CanonicalQuery contains or does not contain.

            Assignee:
            Unassigned Unassigned
            Reporter:
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: