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

Disabling Identity Map in console/background jobs

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Hi,

      I saw in the docs that you can disable the IdentityMap with:

      Mongoid.unit_of_work(disable: :all)

      { ... }

      But in the console you don't always have the option to wrap things in a block. Is it also sufficient to enter Mongoid.identity_map_enabled=false in the console? Thanks!

            Assignee:
            Unassigned Unassigned
            Reporter:
            barmstrong Brian Armstrong
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: