{"action":"created","issue":{"url":"https://api.github.com/repos/djc/couchdb-python/issues/264","labels_url":"https://api.github.com/repos/djc/couchdb-python/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/djc/couchdb-python/issues/264/comments","events_url":"https://api.github.com/repos/djc/couchdb-python/issues/264/events","html_url":"https://github.com/djc/couchdb-python/issues/264","id":89845760,"number":264,"title":"Bulk upload doesn't create doc if needed","user":{"login":"verganis","id":2316685,"avatar_url":"https://avatars.githubusercontent.com/u/2316685?v=3","gravatar_id":"","url":"https://api.github.com/users/verganis","html_url":"https://github.com/verganis","followers_url":"https://api.github.com/users/verganis/followers","following_url":"https://api.github.com/users/verganis/following{/other_user}","gists_url":"https://api.github.com/users/verganis/gists{/gist_id}","starred_url":"https://api.github.com/users/verganis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/verganis/subscriptions","organizations_url":"https://api.github.com/users/verganis/orgs","repos_url":"https://api.github.com/users/verganis/repos","events_url":"https://api.github.com/users/verganis/events{/privacy}","received_events_url":"https://api.github.com/users/verganis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-21T01:35:32Z","updated_at":"2015-06-24T10:45:13Z","closed_at":null,"body":"I am using the Database.update() method to write a list of dictionaries to a Couchdb.\r\nThese docs are being copied from a source db and put in a destination db.\r\nLet's say I have the following docs with their keys in my list\r\nIDKEY-1\r\nIDKEY-2\r\n\r\nIf in the destination db there are two existing docs with such keys, the update works fine.\r\nIf, for example, there is a doc with id \"IDKEY-1\" but no document with id \"IDKEY-2\" the first document is updated correctly while the second will not be written in the destination db. The return value of the update method won't give any clue as it's returning a tuple of (True,IDKEY-2, rev_number) even for the second document.\r\n\r\nWhen I check on the destination db there is no document with key \"IDKEY-2\".\r\n"},"comment":{"url":"https://api.github.com/repos/djc/couchdb-python/issues/comments/114820956","html_url":"https://github.com/djc/couchdb-python/issues/264#issuecomment-114820956","issue_url":"https://api.github.com/repos/djc/couchdb-python/issues/264","id":114820956,"user":{"login":"verganis","id":2316685,"avatar_url":"https://avatars.githubusercontent.com/u/2316685?v=3","gravatar_id":"","url":"https://api.github.com/users/verganis","html_url":"https://github.com/verganis","followers_url":"https://api.github.com/users/verganis/followers","following_url":"https://api.github.com/users/verganis/following{/other_user}","gists_url":"https://api.github.com/users/verganis/gists{/gist_id}","starred_url":"https://api.github.com/users/verganis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/verganis/subscriptions","organizations_url":"https://api.github.com/users/verganis/orgs","repos_url":"https://api.github.com/users/verganis/repos","events_url":"https://api.github.com/users/verganis/events{/privacy}","received_events_url":"https://api.github.com/users/verganis/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T10:45:13Z","updated_at":"2015-06-24T10:45:13Z","body":"More generically I found out that when I bulk update docs the return value \"success\" is always True but sometimes the doc is not updated."}}