两个数据库之间同步
我有一个也有 Web 界面的应用程序,要求之一是即使没有可用的互联网连接也能够在该应用程序上运行。 这些数据库之间是否需要同步?
这些数据库应该有相当大的磁盘空间。 如果有这样的需求应该怎么做呢? 我应该使用什么数据库?
目标操作系统是Windows,但服务器可以在Windows或Linux上运行。<
I have an application that also has a web interface, one of the requirements is to be able to work on the application even if there isn't an internet connection available.
Is there a need to sync between those databases?
Those databases are ought to be pretty big disk space wise.
If there is such a need how should it be done? What database should I use?
The target OS is windows but the server could run on windows or linux.<
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的意思是即使在离线状态下您也需要能够通过网络应用程序工作? 听起来您需要 Google Gears 或其他 HTML5 结构化存储 实现。
如果您在离线时使用本机应用程序,那么是的,听起来您也需要一个本地数据库。
用户通常知道他们什么时候会离线吗? 如果是这样,您可以让他们“签出”他们将需要的数据库子集,然后“上线”并同步。 否则,您可能希望同步他们最近使用过的数据,但清除本地数据库中长期未使用的数据。
这有多困难将取决于您的具体应用。 例如,多个用户是否需要能够同时处理同一组记录?
Do you mean you need to be able to work via the web application even when offline? Sounds like you need Google Gears or another HTML5 structured storage implementation.
If you using a native app when offline, then yes, it sounds like you'll want a local database for that too.
Do the users typically know when they're going to go offline? If so, you could let them "check out" the subset of the database they're going to need, then later "go online" and synchronize. Otherwise, you may want to synchronize data that they've used recently, but purge the local database of data they haven't used for a long time.
Quite how hard that will be will depend on your exact application. Do multiple users need to be able to work on the same set of records simultaneously, for example?