如何在 MySQL 和 Derby 之间设置复制或联合?
也许这还不可能,但是...
在 MySQL 和 Derby 之间设置复制或联合的最简单方法是什么?
我需要一种方法,将数据更新/插入/删除到 Derby 中的某个表中,以尽可能快速有效地自动流入 MySQL 中的等效相同表中。
当然,这可以在应用程序代码中完成,但至少可以说,这是不优雅、缓慢且低效的。
Perhaps this is not possible yet, but...
What's the easiest way to setup Replication or Federation between MySQL and Derby?
I need a way for data updates/inserts/deletes into a certain table in Derby to automatically flow into an equivalent identical table in MySQL, as quickly and efficiently as possible.
This can be done in application code of course, but it would be inelegant, slow, and inefficient to say the least.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我还没有尝试过,但我想使用 c-jdbc、红杉或钨(红杉的后继者)。
例如,从 c-jdbc 主页:
C-JDBC 是一个开源 (LGPL) 数据库集群中间件,它允许任何 Java 应用程序通过 JDBC(tm) 透明地访问数据库集群。数据库在多个节点之间分布和复制,C-JDBC 平衡这些节点之间的查询C-JDBC 处理节点故障并提供对检查点和热恢复的支持。”
简短的功能概述:
它的功能超出了您的需要,但应该涵盖您的用例。
I haven't tried it, but I imagine it shouldn't bee to hard using either c-jdbc, sequoia or tungsten (sequoia's successor).
For example, from the c-jdbc home page:
" C-JDBC is an open source (LGPL) database cluster middleware that allows any Java application to transparently access a cluster of databases through JDBC(tm). The database is distributed and replicated among several nodes and C-JDBC balances the queries among these nodes. C-JDBC handles node failures and provides support for checkpointing and hot recovery."
Short feature overview:
It does more than you need, but should cover your use case.