访问 BerkleyDB 复制日志

发布于 2024-10-23 23:56:46 字数 252 浏览 6 评论 0原文

我们正在编写基于 BerkleyDB JE 和 Lucene 的本土搜索服务。 BDB用于存储原始文档,Lucene用于搜索。我们计划复制 BDB 存储以实现高可用性并平衡读取请求。

但有一个问题。当文档在 BDB Slave 上复制时,应用程序需要知道哪些文档应该在 Lucene 索引中重新索引。据我了解,复制日志已经包含这些条目(实际上我只需要主键)。

所以我的问题是有什么方法可以访问 Berkley DB 复制日志并计算复制流中哪些记录发生了更改?

We are writing home grown search service based on BerkleyDB JE and Lucene. BDB used for storing original documents and Lucene for searching. We are planning to replicate BDB storage to achieve high availability and balance read requests.

But there is a problem. When documents are replicated on BDB slave, application needs to know which documents should be reindexed in Lucene index. As far as I understand replication log already contains these entries (primary key is all I need in fact).

So my question is there any way to access Berkley DB replication log and to calculate which records are changed in replication stream?

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

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

发布评论

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

评论(1

铜锣湾横着走 2024-10-30 23:56:46

这是在 BDB Java 版论坛 上提出的一个很好的问题。

简而言之,在 BDB JE 中,目前无法做到这一点,尽管已请求该功能并且它已在我们的长期路线图中。如果您希望在产品中具有复制触发器,我建议您将您的请求提交到上面列出的论坛,并解释用例以及您希望的行为 - 即:如何您希望副本上的应用程序收到通知,应用程序需要从 BDB JE 获取哪些信息以及应用程序将如何处理该信息。

您可能还想阅读关于 Carbonado 的 BDB JE 常见问题解答,作为您尝试执行的操作的选项。

This is an excellent question to ask on the BDB Java Edition forums.

The short answer is that in BDB JE there is currently no way to do this, although the feature has been requested and it is on our longer term roadmap. If you'd like to have replication triggers in the product, I'd suggest that you submit your request to the forum listed above, with an explanation of the use case and what you would want the behavior to be -- ie: how would you like for your application on the replica to get notified, what information would the application need from BDB JE and what would the application do with that information.

You may also want to read the BDB JE FAQ about Carbonado as an option to what you're trying to do.

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