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

getPermissionCriterion() should be cached per user

    Details

      Description

      The customer experienced huge load and long execution time using SearchService for content with many states.

      For every element, SearchService has to check if a content has the correct state (to be displayed for e.g.). In this particular situation, the customer has at least 19 defined states and tries to perform search for 50 elements. For each of them, SearchService iterates over every state and check it. This operation is very expensive. It will be good to cache getPermissionCriterion() result per user. This way, we will avoid repeating this expensive permission checking in every iteration.

        Issue Links

          Activity

          Show
          André Rømcke added a comment - PR: https://github.com/ezsystems/ezpublish-kernel/pull/2126
          Show
          André Rømcke added a comment - Merged: https://github.com/ezsystems/ezpublish-kernel/commit/1ba74474a7ae0f0d942961e9601004d06676b6a0

            People

            • Assignee:
              Unassigned
              Reporter:
              Kamil Madejski
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: