Change detection of JPA repositories
During debugging of Gitlab builds I noticed that DataviewServiceImpl#afterPropertiesSet
takes quite some time:
18:45:39,875 main ERROR VirtualLookupServiceImpl:129 - Found 64 virtual dataviews in 52ms.
18:45:40,735 main ERROR DataviewServiceImpl:248 - Found 172 JPA entities in 39ms.
18:45:51,039 main ERROR DataviewServiceImpl:263 - Found 171 JPA repositories in 10342ms.
This can also be seen with every first test of a new context: the first one always takes 10-20 seconds, most of it because of the DataviewServiceImpl
.
Please find a more efficient way of initializing the available JPA repositories map.