Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-14133

Batch initialization of object attributes

    XMLWordPrintable

Details

    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

        Activity

          People

            cyberwolf cyberwolf
            cyberwolf cyberwolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: