Skip to content

Instantly share code, notes, and snippets.

@mladenmarkov
mladenmarkov / couchbaseBulkSet.js
Created February 13, 2013 22:32
An example how to workaround node.js couchbase library when saving large number of documents. Use a pool of connections and make sure each connection doesn't get more than around 50 docs at a time.
/**
* An example how to workaround node.js couchbase library when saving large number of documents.
* Use a pool of connections and make sure each connection doesn't get more than around 50 docs at a time.
*
* @author Mladen Markov (mladen.markov@gmail.com)
* @version 1.0 Feb 12, 2013 19:45
*/
var async = require("async");
var couchBase = require("couchbase");