title: CouchDB Conflict Errors
body: <p>Im pretty new to CouchDB and when trying to update a document Im getting conflict errors.</p>
  
  <pre><code>&gt;&gt;&gt; cachefile_db["ABC"] = {1:1}
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/usr/local/lib/python2.7/site-packages/couchdb/client.py", line 344, in __setitem__
      status, headers, data = resource.put_json(body=content)
    File "/usr/local/lib/python2.7/site-packages/couchdb/http.py", line 531, in put_json
      **params)
    File "/usr/local/lib/python2.7/site-packages/couchdb/http.py", line 546, in _request_json
      headers=headers, **params)
    File "/usr/local/lib/python2.7/site-packages/couchdb/http.py", line 542, in _request
      credentials=self.credentials)
    File "/usr/local/lib/python2.7/site-packages/couchdb/http.py", line 394, in request
      raise ResourceConflict(error)
  couchdb.http.ResourceConflict: (u'conflict', u'Document update conflict.')
  </code></pre>
  
  <p>I could prob delete the record and then readd it, what is the suggested/best way to avoid conflict errors ?</p>
  
  <p>Thanks,</p>