Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9.1 (Evans SR1)
-
Fix Version/s: 1.10 M1 (Fowler), 1.9.2 (Evans SR2)
-
Component/s: Repositories
-
Labels:None
-
Sprint:54 - Fowler M1
Description
Apparently every time the tag jpa:repositories is used in XML files, a new instance of RepositoryInterfaceAwareBeanPostProcessor is created and registered with the bean factory. This is mainly a performance problem because predictBeanType(…)-method is then called N times for every relevant bean. This can easily be reproduced with the version 51d1c5d of [email protected]:spring-projects/spring-data-jpa-examples.git by adding an extra stanza like <jpa:repositories base-package="org.springframework.dummy" /> to simple-repository-context.xml and running XmlConfigCachingRepositoryTests.
Attachments
Issue Links
- relates to
-
DATASOLR-218 Improved bean definition registration for repository configuration.
-
- Resolved
-
-
DATACMNS-611 Avoid triple cache lookup in RepositoryInterfaceAwareBeanPostProcessor.predictBeanType(…)
-
- Closed
-