开发者

SpringSyncTransaction with Grails Searchable

开发者 https://www.devze.com 2023-01-30 14:21 出处:网络
I\'m trying to use the SpringSyncTransaction with the Grails Searchable plugin but can\'t set the transactionManager on the LocalCompassBean as suggested.It appears that Searchable does not use the Lo

I'm trying to use the SpringSyncTransaction with the Grails Searchable plugin but can't set the transactionManager on the LocalCompassBean as suggested. It appears that Searchable does not use the LocalCompassBean.

This problem stems from wanting to batch DomainClass.save() calls to reduce disk I/O on the lucene index.

Until now, I've been nesting the spring transaction within a compass transaction using the LocalTransactionFactory. This has been causing issues, and ideally the two transactions would be synced up.

Any suggestions would be appreciated.

http://开发者_如何学JAVAwww.compass-project.org/docs/2.1.0/reference/html/spring-transaction.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号