data-synchronization

SymmetricDS: Which approach should I use to synchronize specific tables?

帅比萌擦擦* 提交于 2019-12-13 01:53:25
问题 I'm testing SymmetricDS and I'm having some doubt about which approach I should use to synchronize some specific tables. I have two application, the first is a ERP and the second is a PDV. Some tables can be synchronized to all PDV databases, however, in some tables the row should synchronize to a specific PDV instance: In this diagram, the red rectangles show which table need synchronize, and the green arrow show the column where we can identify which SymmetricDS instance will synchronize.

How to improve performance of SQL MERGE statement

旧街凉风 提交于 2019-12-11 23:48:37
问题 I have a job that I am currenlty running to sync data between two databases on different internal servers. The one server is the backend database for the HEAT product from FrontRange. The second is our own reporting database we are using for report writing and other internal uses. Our first approach at the job went something like this: Query all the data from the HEAT database tables we wanted and populate local temp tables. Then copy that data out to the appropriate table. That would work

Synchronization between SQL Server CE and SQL Server

丶灬走出姿态 提交于 2019-12-11 13:18:51
问题 How to synchronize data with SQL Server Standard Edition and SQL Server Compact Edition? I hope you will give positive answer regarding this question. 回答1: You can use 3 different sync technologies with SQL Server Compact 3.5 and SQL Server: Merge replication, ADO.NET Sync Framework and RDA 来源: https://stackoverflow.com/questions/8968445/synchronization-between-sql-server-ce-and-sql-server

How to deal with addressbook changes

本小妞迷上赌 提交于 2019-12-11 09:45:02
问题 In our app we keep references to contacts in the address book. What is the best way to make sure that we can deal with updates (both from our app to the address book as well as from the address book to our app). We want to make sure we can handle spelling mistakes, address phone and email changes, synchronization, duplication, 'interesting' use of first last and company name etc. Currently we check first on addressbook id. Only if it changes, we update our information/try to find back the

Android Drive Api Lock File while in use

烈酒焚心 提交于 2019-12-11 08:42:18
问题 How can a DriveFile be locked for download while in use by a user? In my case i have a database stored on Drive that needs to be synchronized locally (on the device). To do this, i have to download it and be sure that someone else is't writing on it concurrently before i upload it again. I included the lib 'com.google.android.gms:play-services-drive:10.2.1' . Searching on internet i found the property labels.restricted descripted: Whether viewers and commenters are prevented from downloading,

Remove row from database and directory on disk in one transaction [duplicate]

痴心易碎 提交于 2019-12-11 05:29:55
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Deleting files and corresponding entries from database I'm writing an ASP.NET application. I have a row in a database with physical path to a folder on disk. I want to delete the row and remove the directory in one transaction. I.e. make sure both are deleted or both are not. I'm using Entity Framework to communicate with the database. The folder to be removed contains images, which may be viewed by a web-site

Sending data from mobile app to Android Wear delay [duplicate]

▼魔方 西西 提交于 2019-12-10 20:02:23
问题 This question already has an answer here : WearListenerService onDataChanged strange behavior (1 answer) Closed 3 years ago . I'm trying to sync data between a settings app and a watch face and I'm having no luck. I've tried using a googleApiClient with listeners & onDataChanged and DataMaps, but there is a huge delay on the wear device to receive the data. (I'm talking like 5 minutes or more from being sent on from the mobile). I've also tried to use Teleport Library for Wearable and I can

CTTelephonyNetworkInfo's currentRadioAccessTechnology Ambiguous response

…衆ロ難τιáo~ 提交于 2019-12-10 10:25:36
问题 I have a scenario in one of my applications that I should allow the user to sync some data to server only if the connection is at least 4G or LTE. Below is the source code I use and it works fine until the scenario explained below occurs/happens. if ([currentCellularAccessTechnology isEqualToString:CTRadioAccessTechnologyGPRS]) { self.currentCellularDataConnectionType = kGPRS; self.cellularConnectionFast = NO; } else if ([currentCellularAccessTechnology isEqualToString

One-way Database Synchronization

半城伤御伤魂 提交于 2019-12-09 11:50:54
问题 There is frequently the need to synchronize data from master tables in one database to clone tables in other databases, often on other servers. For example, consider the case where a backend system manages inventory data and that inventory data ultimately must be pushed to one or more databases that are part of a web site application. The source data in the backend system is heavily normalized, with dozens of tables and foreign key constraints. It is a well-designed OLTP RDBMS system. Many of

Gaining better performance with inotify-tools and unison.

让人想犯罪 __ 提交于 2019-12-07 11:58:49
问题 I use inotify-tools and unison to synchronize folders between machines. Because I have a large folder to synchronize, I just simply write an inotifywait script to do the job automatically. Is it sensible to let inotifywait to monitor the subdirectories of the large folder to gain a better performance? 回答1: You should get better performance if you ditch inotify-tools and just use unison's native support for watching your folders for changes. By using inotify-tools and then calling unison when