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

Slow setting of embeds_many documents

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

      I have a document with about 800 items in an embeds_meny and I'm copying it to another document like:

      target.positions = source.positions.map(&:dup)
      

      This takes about 100 seconds and I can't figure out why. I disabled all callbacks and validations and it didn't help.
      Are there some known issues on this topic?

            Assignee:
            Unassigned Unassigned
            Reporter:
            stanley90x Marek Stanczyk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: