Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Syncing between two databases

I have an application that also has a web interface, one of the requirements is to be able to work on the application even if there isn't an internet connection available. Is there a need to sync between those databases?
Those databases are ought to be pretty big disk space wise. If there is such a need how should it be done? What database should I use?
The target OS is windows but the server could run on windows or linux.<

like image 262
the_drow Avatar asked Jul 06 '09 06:07

the_drow


1 Answers

Do you mean you need to be able to work via the web application even when offline? Sounds like you need Google Gears or another HTML5 structured storage implementation.

If you using a native app when offline, then yes, it sounds like you'll want a local database for that too.

Do the users typically know when they're going to go offline? If so, you could let them "check out" the subset of the database they're going to need, then later "go online" and synchronize. Otherwise, you may want to synchronize data that they've used recently, but purge the local database of data they haven't used for a long time.

Quite how hard that will be will depend on your exact application. Do multiple users need to be able to work on the same set of records simultaneously, for example?

like image 144
Jon Skeet Avatar answered Oct 13 '22 13:10

Jon Skeet