在Android手机上使用CouchDb,在服务器端使用mongodb [英] Using CouchDb on a android phone and mongodb on the server side

查看:230
本文介绍了在Android手机上使用CouchDb,在服务器端使用mongodb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下情况:我需要在Android上有一个嵌入式数据库(nosql),并且在服务器上有一个主数据库,理想情况下应该是nosql数据库.两者之间需要同步.移动设备将转到永恒的数据库.我们有不同的选择 1)在移动端使用couchDB,在服务器端也使用couchdb 2)在移动端使用couchDb,在服务器端使用Mongodb 3)在移动端使用sqlLite,在服务器端使用MongoDb/CouchDb.

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.

在评估最佳选择以及使用这些方法的好处/问题时,请提供您的意见. 注意:目前,MongoDb不支持Android上的嵌入式数据库.此外,Mongo不提供REST APIS,我们需要使用MongoLabs和SleepyMongoose之类的第三部分

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

推荐答案

您没有提到用于在数据库之间同步更改的方法,尤其是在更改冲突的情况下(一方面是更新,而另一方面是删除)例如匹配记录的另一边),但使用每一边的相同数据库似乎会使您的生活变得更简单.

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.

这篇关于在Android手机上使用CouchDb,在服务器端使用mongodb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆