Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5548

Add implicit transactions to Mongoid

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Transactions
    • Labels:
      None

      In ActiveRecord save and destroy operations are automatically wrapped in a transaction. Therefore, all transactional callbacks work even if a user did not explicitly open a transaction.

      This is an expected behavior for this feature. It is basically impossible to implement it in Mongoid without an implicit transaction. We can just get somehow close to it.

      • We should allow users to enable implicit transactions in Mongoid.
      • It should be documented that this option will not work on a standalone deployment
      • We should provide tools to run a replica set deployment locally, or document how to do it.

            Assignee:
            Unassigned Unassigned
            Reporter:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: