开发者

Where to store design documents for CouchDB?

开发者 https://www.devze.com 2023-01-28 21:10 出处:网络
I\'m new to CouchDB and I wonder how experienced CouchDB handles the large amount of design documents.

I'm new to CouchDB and I wonder how experienced CouchDB handles the large amount of design documents.

My questions:

  1. Where do you store design documents: In CouchDB with Futon's "save" or on harddrive then uploading it through 开发者_如何学编程the HTTP API?
  2. If you are uploading them, how do you do it? You create custom queries or are you using any framework?
  3. I'm using node.js, are there good libraries/frameworks that I could use to ease the CouchDB development?

Please share your experiences!


1) Since the whole of CouchDB works through a REST API, all Futon is doing really is working through the REST interface. Basically, you will always load it through the HTTP API. It's a matter of choice of which tool you will do it with, in which the tool abstracts the process for you. At the end of the day, all a design document is, is another type of document.

2) Personally, since I am coding for it in python, I use the couchdbkit framework, which has auto document loading on it. I am sure there is something similar for node.js. I am unable to answer though.

3) Maybe node-couchdb, although it seems to be no longer maintained. There is alot of material on the internet, just google it!


CouchApp is the best tool for managing/uploading your design docs. Its main purpose is for pure Couch apps but you dont have to use that aspect, it makes design doc managing a breeze (couchapp push).


CouchDB is JSON over HTTP, both things Node does more or less natively. I've found the npm module Nano to work fairly well.

As far as CouchApp goes, there's a couchapp for node.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号