Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4823

Optimize: generated get and set field MQL

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Builders
    • Labels:
      None

      When setting or getting fields in our expressions API, the resulting MQL is verbose, since it produces $getField and $setField MQL. 

      • It should be possible to use a post-processor to collapse some of these into simple string paths. 
      • For literal documents, it should be possible to execute the gets and sets in the "local execution context" (storing and producing a new internal document each time, rather than generating composite expressions that wrap the original literal document).

            Assignee:
            Unassigned Unassigned
            Reporter:
            maxim.katcharov@mongodb.com Maxim Katcharov
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: