DataBase synchronization issues

S

Sinex

Hi ! Am writing a webservice that is gonna be called by another webservice
to synchronize a database. My DB has thousands of records. I dont want to
read all the records at one shot and send them across. I plan to send the
records in chunks. The problem is...what happens if i send the first chunk
and then some records get deleted on my side?!

Eg:
I send the first 5 records. Then say the 2nd record is deleted from the db.
If I blindly send records 6-10, I wouldve missed the original 6th record
(which has moved in to 5th place now due to deletion of the 2nd record!)

I have only read permissions to the DB. In this scenario, how do I make sure
that at the end of the sync operation both client and server have the same
exact DB.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top