如果事务回滚,CompassGps 会回滚吗?

发布于 2024-09-10 11:01:44 字数 182 浏览 0 评论 0原文

如果CompassGps镜像与Hibernate一起使用,如果数据库事务回滚会发生什么?对索引的更改是否会回滚(假设索引的文件存储)?

似乎如果 Lucene 索引存储在磁盘上,它就不会自动回滚,除非 Compass 足够智能来为您处理这个问题。

FWIW,我正在使用 Grails 的 Searchable 插件。

If CompassGps mirroring is used with Hibernate, what happens if the database transaction rolls back? Will the changes to the index be rolled back (assuming file store for the index)?

It seems like if the Lucene index is stored on the disk it won't be automatically rolled back, unless Compass is smart enough to handle that for you.

FWIW, I am using the Searchable plugin with Grails.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

思念满溢 2024-09-17 11:01:44

Compass/Lucene 端不会出现任何回滚的情况。 Compass 注册事件监听器并作用于插入、删除和更新来更新 Lucene 索引。如果事务回滚,那么 Compass 将无法获取这些事件。

There wouldn't be anything to roll back on the Compass/Lucene end. Compass registers event listeners and acts on inserts, deletes and updates to update the Lucene index. If a transaction rolled back then Compass wouldn't get those events.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文