Arbit - project tracking

PHPillow - PHP CouchDB connector

#4: Use /_uuid to create docs

Issue attachments

Issue revisions

  • new by jan at 2009-J-15 23:32
  • new by jan at 2009-J-15 23:32
  • new by jan at 2009-J-15 23:32
Type enhancement enhancement
State new new
Priority low low
Resolution none none
Assigned to Nobody
Scheduled for
Affected versions 0.2-alpha, 0.3-alpha, branch-php-5.2
Affected components Core
Last change Thursday 15 January 2009 23:32:37 UTC by jan

Short description

POST requests may be repeated by faulty HTTP middleware. Doc-create requests hence might end up on the server twice. To avoid data duplication, CouchDB offers the /_uuids API to receive a list of UUIDs to use for doc creation to avoid data duplication.

  • till at Monday 8 June 2009 00:00:03 UTC

    Janlbert, schick doch mal nen patch. ;-) Oder haste keine Zeit?

  • bzikarsky at Tuesday 16 February 2010 17:54:38 UTC

    I just came across this issue, and fixed it (patch-file in attachment). This is just an easy fix, maybe there could be some "id-provider"-method in the connection class which fetches several ids at once, for a performance speedup in a situation with lots of creation-requests.