Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-1102

Avoid superfluous recreation of DefaultConversionService in ResultProcessor

    Details

      Description

      When measuring JPQL/Criteria API vs Spring Data JPA projection execution time, Spring Data JPA is way slower than the other.

      Avg for JPQL/Criteria API: 73ms
      Avg for Spring Data JPA: 774ms

      The slowness comes from reinstantiating the DefaultConversionService in ProjectingConverter. Maybe using the shared instance from DefaultConversionService would be a solution for it to eliminate the cost of reinstantiation, see the discussion with Oliver Gierke on Twitter.

        Attachments

          Activity

            People

            • Assignee:
              olivergierke Oliver Gierke
              Reporter:
              galovics Arnold Galovics
              Last updater:
              Oliver Gierke
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: