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

As a developer I want access to ContentType on Content to avoid re-loading it

    Details

      Description

      Like in EZP-28956 where getContent() was added on Location, this is about adding getContentType on Content to avoid having to deal with loading logic and also further more to avoid repeated loads of content types in the system when we already have the Type (as we need it to build Content) and can thus pass it around on Content Items.

      This implicit involves improving performance:

      • No repeated content types loading when calling field functions in Twig, as they can now use the provided type info
        • No implicit repeated loads for same language when having to build these content types over and over
      • Add possibility to bulk load ContentTypes in SPI in order to handle this even more efficient when bulk loading content (either bulk load or on Location/Content Search results)

      The issue where hidden in 5.x / 1.x due to inMemory cache feature in Stash, which we don't (yet) have re-introduced in 2.x. When we do re-introduce it it will be in a way that it is safe also for long running scripts and don't eat up all available memory until it crashes.

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Backlog Backlog Specification Specification
          31s 1 André Rømcke 14/Sep/18 6:10 AM
          Specification Specification Specification Done Specification Done
          19s 1 André Rømcke 14/Sep/18 6:11 AM
          Specification Done Specification Done Development Development
          7d 7h 34m 1 André Rømcke 21/Sep/18 1:45 PM
          Development Development Development Done Development Done
          58d 3h 5m 1 André Rømcke 18/Nov/18 3:51 PM
          Development Done Development Done QA QA
          11d 21h 22m 1 Michał Szołtysek 30/Nov/18 1:13 PM
          QA QA QA Done QA Done
          3d 21h 31m 1 Michał Szołtysek 04/Dec/18 10:45 AM

            People

            • Assignee:
              Unassigned
              Reporter:
              André Rømcke
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: