{"action":"created","issue":{"url":"https://api.github.com/repos/go-mgo/mgo/issues/288","repository_url":"https://api.github.com/repos/go-mgo/mgo","labels_url":"https://api.github.com/repos/go-mgo/mgo/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/go-mgo/mgo/issues/288/comments","events_url":"https://api.github.com/repos/go-mgo/mgo/issues/288/events","html_url":"https://github.com/go-mgo/mgo/issues/288","id":161595024,"number":288,"title":"bulk update: exceeded maximum write batch size of 1000","user":{"login":"cirias","id":6734547,"avatar_url":"https://avatars.githubusercontent.com/u/6734547?v=3","gravatar_id":"","url":"https://api.github.com/users/cirias","html_url":"https://github.com/cirias","followers_url":"https://api.github.com/users/cirias/followers","following_url":"https://api.github.com/users/cirias/following{/other_user}","gists_url":"https://api.github.com/users/cirias/gists{/gist_id}","starred_url":"https://api.github.com/users/cirias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cirias/subscriptions","organizations_url":"https://api.github.com/users/cirias/orgs","repos_url":"https://api.github.com/users/cirias/repos","events_url":"https://api.github.com/users/cirias/events{/privacy}","received_events_url":"https://api.github.com/users/cirias/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-22T05:08:21Z","updated_at":"2016-06-23T00:25:58Z","closed_at":null,"body":"When I use bulk to handle more than 1000 updates, I got the error `exceeded maximum write batch size of 1000`.\r\n\r\nI found the reason is [Collection.writeOp](https://github.com/go-mgo/mgo/blob/v2/session.go#L4513) did not handle the 1000 limit for `bulkUpdateOp` and `bulkDeleteOp`.\r\n\r\nThis should be fix."},"comment":{"url":"https://api.github.com/repos/go-mgo/mgo/issues/comments/227916460","html_url":"https://github.com/go-mgo/mgo/issues/288#issuecomment-227916460","issue_url":"https://api.github.com/repos/go-mgo/mgo/issues/288","id":227916460,"user":{"login":"cirias","id":6734547,"avatar_url":"https://avatars.githubusercontent.com/u/6734547?v=3","gravatar_id":"","url":"https://api.github.com/users/cirias","html_url":"https://github.com/cirias","followers_url":"https://api.github.com/users/cirias/followers","following_url":"https://api.github.com/users/cirias/following{/other_user}","gists_url":"https://api.github.com/users/cirias/gists{/gist_id}","starred_url":"https://api.github.com/users/cirias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cirias/subscriptions","organizations_url":"https://api.github.com/users/cirias/orgs","repos_url":"https://api.github.com/users/cirias/repos","events_url":"https://api.github.com/users/cirias/events{/privacy}","received_events_url":"https://api.github.com/users/cirias/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T00:25:58Z","updated_at":"2016-06-23T00:25:58Z","body":"Yes. But according to https://docs.mongodb.com/manual/reference/limits/#Write-Command-Operation-Limit-Size the driver should not have the limit.\r\n\r\nAlso see https://github.com/go-mgo/mgo/issues/62"}}
{"actor":{"display_login":"cirias"}}