Last active
December 9, 2015 21:43
-
-
Save iamruinous/d9c3df9faaac368659cd to your computer and use it in GitHub Desktop.
mongodb-core RangeError: Maximum call stack size exceeded
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var async, col, conn, max, mongojs; | |
async = require('async'); | |
mongojs = require('mongojs'); | |
max = 1000; | |
conn = mongojs("localhost/testmeout"); | |
col = conn.collection('tests'); | |
async.times(max, function(i, next) { | |
return col.insert({ | |
foo: "bar " + i | |
}, next); | |
}, function() { | |
return col.find({}, function(error, data) { | |
if (error != null) { | |
console.error(error.stack); | |
} | |
return console.log(data); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment