开发者

SpringSyncTransaction with Grails Searchable

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜