1
1
101-s2018-04-13 17:10:57
Database
101-s, 2018-04-13 17:10:57

Database synchronization, how to do it?

There is a base on a remote server and a base on a computer. It is necessary to synchronize one table, not all data can be compared, but only some fields. The table is large, and I would like the process to be fast. Bases are different types.
How would you solve this problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
Leonid Rozhnov, 2018-04-13
@101-s

Definitely don't transfer all the data every time. Add the "Revision" field to the data, which will increase each time the record in the table is updated, by the next global value.
When synchronizing, get from the database only those records whose revision is greater than the last one known to the remote server, and transfer only them.
Do they change the data in both databases, or does one of them uniquely own the data, while the second only reads?

R
RidgeA, 2018-04-13
@RidgeA

select data from remote database -> put in local

E
Egor Kazantsev, 2018-04-13
@saintbyte

Why nobody offers replication?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question