Development for Cloudant using local CouchDB

混江龙づ霸主 提交于 2019-12-08 19:18:40

问题


I'm planing on having my database stored in Cloudant.
Is it safe to use local CouchDB during development, testing and staging of our application with knowledge that everything works locally should also work on Cloudant?


回答1:


I do a very similar process. You don't need the same versions, it will actually be very different no matter how you look at it. Cloudant is very cool, and have made a lot of alterations and additions to their system. So, if you are looking at developing views, attachments, etc, then you can develop those locally on your dev project. Once your dev project looks good, I would have those checked into the staging/qa server, which I like to use Cloudant for as well. Thats where you need to get everyones code working together. after that is done, you can fire off a replicator to replicate your staging to production.

No matter how you look at it though, or how you envision the process being, you are going to want to take a close look at the going from dev to QA. There are ways to go about it so that everyone can dev on their own, and merge up. I personally like to use github. I hope this helps you out in your tasks.




回答2:


Certainly. Cloudant is API compatible with the Apache CouchDB API with a few subtle distinctions, all of which are documented at http://docs.cloudant.com. Some highlights are:

  • we disable temporary views (they would be expensive for you at scale!)
  • for our distributed system, we have extend the update_seq from an integer to a string
  • your re-reduce code will nearly always be called, so we recommend using exclusively built-in reduce methods
  • we have fully integrated lucence indexing/search
  • we have multi-stage mapreduce processing via "dbcopy"


来源:https://stackoverflow.com/questions/18124421/development-for-cloudant-using-local-couchdb

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