{"action":"created","issue":{"url":"https://api.github.com/repos/mafintosh/mongojs/issues/265","labels_url":"https://api.github.com/repos/mafintosh/mongojs/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/mafintosh/mongojs/issues/265/comments","events_url":"https://api.github.com/repos/mafintosh/mongojs/issues/265/events","html_url":"https://github.com/mafintosh/mongojs/issues/265","id":119690565,"number":265,"title":"Bulk API doesnt break up actions","user":{"login":"angelo0000","id":2353,"avatar_url":"https://avatars.githubusercontent.com/u/2353?v=3","gravatar_id":"","url":"https://api.github.com/users/angelo0000","html_url":"https://github.com/angelo0000","followers_url":"https://api.github.com/users/angelo0000/followers","following_url":"https://api.github.com/users/angelo0000/following{/other_user}","gists_url":"https://api.github.com/users/angelo0000/gists{/gist_id}","starred_url":"https://api.github.com/users/angelo0000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelo0000/subscriptions","organizations_url":"https://api.github.com/users/angelo0000/orgs","repos_url":"https://api.github.com/users/angelo0000/repos","events_url":"https://api.github.com/users/angelo0000/events{/privacy}","received_events_url":"https://api.github.com/users/angelo0000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-01T10:45:49Z","updated_at":"2015-12-01T10:47:58Z","closed_at":null,"body":"I am trying to upgrade to the latest MongoJS as well as Mongo 3.0.  When I run code that I have had in production for 2yrs I get an error on doing bulk updates.\r\n\r\n{ name: 'MongoError',\r\n  message: 'exceeded maximum write batch size of 1000',\r\n  ok: 0,\r\n  code: 16,\r\n  errmsg: 'exceeded maximum write batch size of 1000' }\r\n\r\n\r\nShouldn't mongojs be managing breaking that up or the underlying driver at least? "},"comment":{"url":"https://api.github.com/repos/mafintosh/mongojs/issues/comments/160931760","html_url":"https://github.com/mafintosh/mongojs/issues/265#issuecomment-160931760","issue_url":"https://api.github.com/repos/mafintosh/mongojs/issues/265","id":160931760,"user":{"login":"angelo0000","id":2353,"avatar_url":"https://avatars.githubusercontent.com/u/2353?v=3","gravatar_id":"","url":"https://api.github.com/users/angelo0000","html_url":"https://github.com/angelo0000","followers_url":"https://api.github.com/users/angelo0000/followers","following_url":"https://api.github.com/users/angelo0000/following{/other_user}","gists_url":"https://api.github.com/users/angelo0000/gists{/gist_id}","starred_url":"https://api.github.com/users/angelo0000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelo0000/subscriptions","organizations_url":"https://api.github.com/users/angelo0000/orgs","repos_url":"https://api.github.com/users/angelo0000/repos","events_url":"https://api.github.com/users/angelo0000/events{/privacy}","received_events_url":"https://api.github.com/users/angelo0000/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T10:47:58Z","updated_at":"2015-12-01T10:47:58Z","body":"Example Code I have:\r\n\r\nbulk.find({ memberId: memberId }).updateOne({ $set: updateData });\r\n\r\nmemberId is a number and updateData is just an json Object of field/values.  I may have 5-10k of these in a single batch that gets executed.  In my previous version of MongoJs this works just fine."}}