Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-718

Bottleneck in computeAssociationChanges()?

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      It seems that since DDC-600 computeAssociationChanges() iterate over entries of an collections, even if they are not marked as cascadePersist. For large, hydrated collections this could potentially become a bottleneck.

      Wouldn't it be better to save the "addedEntities" in an additional map inside "PersistentCollection" and retrieve those instead of calling $value->unwrap() ?

        Issue Links

          Activity

          Benjamin Eberlei created issue -
          Benjamin Eberlei made changes -
          Field Original Value New Value
          Link This issue relates to DDC-600 [ DDC-600 ]
          Roman S. Borschel made changes -
          Priority Major [ 3 ] Minor [ 4 ]
          Benjamin Eberlei made changes -
          Workflow jira [ 11677 ] jira-feedback [ 13867 ]
          Benjamin Eberlei made changes -
          Workflow jira-feedback [ 13867 ] jira-feedback2 [ 15731 ]
          Benjamin Eberlei made changes -
          Workflow jira-feedback2 [ 15731 ] jira-feedback3 [ 17988 ]

            People

            • Assignee:
              Roman S. Borschel
              Reporter:
              Benjamin Eberlei
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: