Bug #34154

ObjectValidator has exponential growth factor

Added by Kira Backes over 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Must have
Assignee:
Category:
Validation
Start date:
2012-02-21
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

In the onFlush method of the PersistenceManager all objects are validates, this is a problem especially for many connected entities. Look at the times needed:

Validate Insertion Count: 174
onFlush Validation Duration: 9s

Validate Insertion Count: 234
onFlush Validation Duration: 43s

Validate Insertion Count: 246
onFlush Validation Duration: 129s

At about 300 entities this is already taking hours to validate, so the system is completely unusable.


Related issues

Related to TYPO3.Flow - Bug #37363: PersistenceManager->validateObject() ==> to many calls/loops/recursions somewhere in a subcallResolvedKarsten Dambekalns2012-05-21

Actions
Has duplicate TYPO3.Flow - Bug #34408: CollectionValidator goes in endless recursionClosedKarsten Dambekalns2012-02-29

Actions
#1

Updated by Kira Backes over 9 years ago

This also happens when loading a single entity with lots of connected entities (even when those entities are connected over 5 proxies, it seems like everything is unfolded)

#2

Updated by Gerrit Code Review over 9 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9180

#3

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9180

#4

Updated by Karsten Dambekalns over 9 years ago

  • Category set to Validation
  • Assignee set to Rens Admiraal
  • Target version set to 1.1
#5

Updated by Karsten Dambekalns about 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF