Using CouchDb on a android phone and mongodb on the server side

跟風遠走 提交于 2019-12-10 15:53:35

问题


I have the following scenario.I need to have an embedded database(nosql) on Android and i have a master database on the server which should ideally be nosql database.There needs to be syncing between the two.All queries from the mobile will go to the iternal database.We have differnt options 1)Use couchDB on the mobile side and also use couchdb on the server side 2)Use couchDb on the mobile side and use Mongodb on the server side 3)Use sqlLite on the mobile side and use MongoDb/CouchDb on the server side.

Please give your views in evaluating the best option and the benifits/problems of using these approaches. Note:Currently MongoDb does not support for an embedded database on Android.Also Mongo does not provide the REST APIS and we need to use third paty like MongoLabs and SleepyMongoose


回答1:


You don't mention the methodology you would use to sync changes between the databases especially in the cases in which changes conflict (an update on one side, a delete of the matching record on the other side for example), but it seems like your life will be simpler using the same database on each side.



来源:https://stackoverflow.com/questions/10221815/using-couchdb-on-a-android-phone-and-mongodb-on-the-server-side

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!