javascript - Error while saving a lot of data to CouchDB -


i using couchapp couchdb store information connections between nodes. trying save array of json data. if number of items in array less 2000, works fine. unfortunately, bigger amounts of data cause errors:

post http://localhost:5984/graph_project/  jquery.js:8240 send jquery.js:8240 jquery.extend.ajax jquery.js:7719 savedoc jquery.couch.js:627 writejsontodb main.js:185 csvarraytojson main.js:335 (anonymous function)  uncaught typeerror: cannot read property 'error' of null jquery.couch.js:649 $.ajax.complete jquery.couch.js:649 fire jquery.js:1075 self.firewith jquery.js:1193 done jquery.js:7553 callback 

and part of data saved correctly.

the code looks this:

function writejsontodb(datatosave) {   db = $.couch.db(database_name);    for(var in datatosave){     db.savedoc(datatosave[i], {              success: function(data) {             console.log("node added succesfully");         },         error: function(data){             console.log("problem data" + data);         }     });   }       } 

where problem? couchdb contain buffer may overfilled?


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -