SpringSyncTransaction with Grails Searchable

I am trying to use SpringSyncTransaction with the Grails Searchable plugin but cannot install transactionManager on LocalCompassBean as suggested. It looks like Searchable is not using LocalCompassBean.

This problem is related to the need for DomainClass.save () batch calls to reduce disk I / O in the lucene index.

So far, I have pushed the spring transaction into a compass transaction using LocalTransactionFactory. This causes problems, and ideally the two transactions will be synchronized.

Any suggestions would be appreciated.

http://www.compass-project.org/docs/2.1.0/reference/html/spring-transaction.html

+3
source share

Source: https://habr.com/ru/post/1780518/


All Articles