简体   繁体   中英

Sync databases sqlite with mysql

I have a database in android app and i like to sync this sqlite db with mysql master in internet.

What is the best way to resolve this problem?

-dump in a file, upload file using web services -dump in a file, upload with ftp and then cron - any others?

Thankz

If its a one-time upload, use the dump-to-file aproach. Send it to server and parse it there.

If you have to keep syncing, then use a web-service api, and that too use as sparsely as possible - collect a lot of data and then sync, or on an as-needed basis. Focus to use as less data and battery as possible.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM