简体   繁体   English

如何自动将本地数据库与远程数据库合并?

[英]how to merge local database with remote database automatically?

I have background of ruby on rails , cakephp , angular , wordpress kind of technology, currently i have a client who is asking for application which can work offline without internet, and when it got connectivity of internet the database of local server need to be automatically merge with remote database. 我有ruby on rails,Cakephp,angular,wordpress这类技术的背景,目前我有一个客户正在要求可以在没有Internet的情况下可以脱机工作的应用程序,并且当它具有Internet连接时,本地服务器的数据库需要自动进行与远程数据库合并。 can ruby-desktop will handle this kind of application , or should i go with another technology ? ruby-desktop可以处理这种应用程序吗?还是我应该使用另一种技术? which technology will make my work easy? 哪种技术可以使我的工作变得轻松?

For SQL Server you can use Merge Replication for this. 对于SQL Server,您可以为此使用合并复制 Or you code your application to handle the synchronization, writing to a local database, detecting when you have connectivity, and copying data back and forth to the central database. 或者,您对应用程序进行编码以处理同步,写入本地数据库,检测何时建立连接以及将数据来回复制到中央数据库。

The choice really comes down to how many tables need to be synced, whether you have bi-directional tables, and whether you need automatic conflict detection and resolution. 真正的选择取决于需要同步多少个表,是否有双向表以及是否需要自动冲突检测和解决。

So, if you have only a few tables to replicate, and they are all either download-only, or upload-only then just write this as part of your application. 因此,如果只有几张表要复制,并且它们要么都是仅下载的,要么是仅上传的,则只需将此表编写为应用程序的一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将本地数据库与远程数据库同步,反之亦然 - Synchronizing local database with remote database and vice versa 使用远程数据库数据更新本地数据库 - Update local database using remote database data 如何为WordPress配置数据库以自动检测本地和实时服务器? - How to configure Database for WordPress to automatically Detect Local and Live Server? 如何将远程 SQL Server 数据库备份到本地驱动器? - How can I backup a remote SQL Server database to a local drive? 合并、分区和远程数据库 - 性能调优 Oracle - Merge, Partition and Remote Database - Performance Tuning Oracle Oracle数据库-将对象复制到远程数据库并进行修改,以便仅在本地数据库脱机时才使用远程数据库 - Oracle database - copying objects to remote database and modifying so they use the remote database only if the local database is offline 如何将我从远程MySQL数据库选择的一些行插入本地MySQL数据库 - how do I insert some rows that I select from remote MySQL database to my local MySQL database 如何在 Visual Studio asp.net 项目中从远程数据库设置本地数据库? - How to setup local database from remote database in visual studio asp.net project? Windows Store应用程序中的本地和远程数据库 - local and remote database in Windows Store app 同步两个本地和远程SQL Server数据库 - sync two local and remote sql server database
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM