Details
-
Improvement
-
Resolution: Fixed
-
Medium
-
4.0.1
-
None
Description
What makes adding new class attributes such a time-intensive operation, is that for each object attribute of that class attribute some datatype-specific methods need to be called. Too much object-oriented coding kills your database.
For the majority of datatypes, the initialization (initializeObjectAttribute() method) of attributes, consists only of setting a default value, or is even not doing anything at all. While when creating new attributes in plain SQL we could have the same effect, but much much faster... INSERT INTO ezcontentobject_attribute ( ..., 'field_where_default_value_needs_to_be_in', ... ) SELECT ..., 'default_value', ... FROM ....
Attachments
Issue Links
- relates to
-
EZP-10203 Changing classes with a lot of objects can result in a maximum execution time error
- Closed