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

$move operator for moving a value somewhere else in the same document

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Write Ops
    • Labels:
      None

      Description

      Three cases:

      • Move and overwrite: say moving property 'a.b.c' to 'x.y.z'
      • Multiple move, last overwrite: say moving property a to b, property b to c, property c to d overwriting d
      • Move to insert in array: say moving property x to 'a.3', shifting up all current elements from 3 onward. If the value being moved to is from an array, shift down that array.

      Currently all of these cases can require potentially large amounts of data to be passed back and forth, when the server really has all that information already.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-query Backlog - Query Team
            Reporter:
            fresheneesz Billy Tetrud
            Participants:
            Votes:
            1 Vote for this issue
            Watchers:
            12 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: