Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-7489

Modern drivers use write commands instead of OP_INSERT, OP_UPDATE, and OP_DELETE + getLastError

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • manual
    • None

    Description

      This page:

      https://docs.mongodb.org/manual/reference/mongodb-wire-protocol/#wp-request-opcodes

      should mention that, starting with MongoDB 2.6 and maxWireVersion 3, modern drivers use write commands for acknowledged writes, instead of OP_INSERT, OP_UPDATE, and OP_DELETE + getLastError. The legacy op codes are not exactly "deprecated" since they are not scheduled for removal, and most drivers will use them for unacknowledged writes. But they are "legacy" or "old-fashioned".

      Attachments

        Activity

          People

            ravind.kumar Ravind Kumar (Inactive)
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 42 weeks, 5 days ago