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

Update Transaction Docs: How to avoid stale reads in transactions

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • Server
    • None

    Description

      Description

      Only writes trigger conflicts in transactions. This is true for all implementations of snapshot isolation across databases. Let's add a section to the transactions documentation to explain how to avoid stale reads in certain operations by doing a findAndModify or update to that document in the transaction in addition to the read. 

      Scope of changes

      https://docs.mongodb.com/manual/core/transactions/index.html

      https://docs.mongodb.com/manual/core/write-operations-atomicity/index.html 

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            alyson.cabral@mongodb.com Alyson Cabral (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5 years, 14 weeks, 1 day ago