Skip to content

Commit

Permalink
DOCS-1940: write command release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Kleinman committed Nov 18, 2013
1 parent 4157f1a commit 68709fe
Showing 1 changed file with 30 additions and 11 deletions.
41 changes: 30 additions & 11 deletions source/release-notes/2.6.txt
Original file line number Diff line number Diff line change
Expand Up @@ -448,45 +448,64 @@ information.
Write Operation Improvements
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded 2.5.3
New Write Commands
``````````````````

.. versionchanged:: 2.5.4

MongoDB has updated the wire protocol to include new :dbcommand:`insert`,
:dbcommand:`update`, and :dbcommand:`delete` commands for all write
operations. You may specify a single write concern for each bulk
writes operation. The new commands support a number of other
configuration options including the ability to proceed if any
individual write fails. See the documentation of these commands for
more information:

MongoDB has updated the wire protocol to include new ``insert``,
``update``, and ``delete`` commands for batch operations. You may
specify a single write concern for each batch of writes. The new
commands support a number of other configuration options including
the ability to proceed if any individual write fails.
- :dbcommand:`insert`,
- :dbcommand:`update`, and
- :dbcommand:`delete`

The :program:`mongo` shell uses these new commands by default for
*all* write operations when connected to a 2.5.4 or MongoDB
instance. However, the :program:`mongo` shell will use legacy write
operations when connected to earlier MongoDB instances.

New Write Operations
`````````````````````

.. versionadded 2.5.3

MongoDB also introduces new changes to the update language:

``$mul`` Update Operator
````````````````````````
^^^^^^^^^^^^^^^^^^^^^^^^

The new :update:`$mul` operator allows you to multiply the value of a
field by the specified amount. See :update:`$mul` for details.

``xor`` operation for ``$bit`` Operator
```````````````````````````````````````
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The :update:`$bit` operator now supports bitwise updates using a logical
``xor`` operation. See the documentation of :update:`$bit` for more
information on bitwise updates. Consider the following operation:

``$min`` Update Operator
````````````````````````
^^^^^^^^^^^^^^^^^^^^^^^^

The new :update:`$min` operator updates the value of the field to a
specified value *if* the specified value is **less than** the current
value of the field. See :update:`$min` for details.

``$max`` Update Operator
````````````````````````
^^^^^^^^^^^^^^^^^^^^^^^^

The new :update:`$max` operator updates the value of the field to a
specified value *if* the specified value is **greater than** the
current value of the field. See :update:`$max` for details.

``$currentDate`` Update Operator
````````````````````````````````
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The :update:`$currentDate` operator sets the value of a field to the
current date, either as a :ref:`Date <document-bson-type-date>` or a
Expand Down

0 comments on commit 68709fe

Please sign in to comment.