| |

VerySource

 Forgot password?
 Register
Search
View: 3472|Reply: 20

How to achieve data synchronization?

[Copy link]

2

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-1-29 18:40:01
| Show all posts |Read mode
Now A is server, A has database db, B is client, and B also has the same database db as A.
If the data on A changes, then the database db on B also changes as the db on A changes. How do you achieve this? Is there any source code for this?
Reply

Use magic Report

0

Threads

31

Posts

17.00

Credits

Newbie

Rank: 1

Credits
17.00

 China

Post time: 2020-3-8 08:15:01
| Show all posts
It seems that it is said that the database can be copied and distributed. I haven't done it. Learn it
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-9 14:30:01
| Show all posts
1. To mark the synchronized and unsynchronized data. Available methods are time, dedicated update flags, self-incrementing ID, etc.
2.Synchronize the marked data.
3. Modify the mark.

A little bit like asking how to put the elephant in the refrigerator. :)
Reply

Use magic Report

2

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-3-16 19:45:02
| Show all posts
I do n’t quite understand, there are no examples, let me see
Reply

Use magic Report

0

Threads

12

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-3-17 18:15:01
| Show all posts
Publish and subscribe with data.
Reply

Use magic Report

2

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-4-7 21:15:01
| Show all posts
Is there a good way? It must be implemented with a program
Reply

Use magic Report

2

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-4-7 23:30:01
| Show all posts
I think sql Server has its own publishing and subscription functions. If you want to use the program to achieve how to design?
Thank you heroes
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-5-9 10:00:01
| Show all posts
Use triggers.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-3 02:15:02
| Show all posts
Use triggers.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-14 09:45:01
| Show all posts
How does this synchronize with the cache...
Just write a framework to update one database and update another database at the same time.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list