Thanks, this is what I was looking for.

Almost like a trigger :p

However, I added a HEAD request to my PHP class when revision is not
specified. I will see how it performs under load before I dig into
this update handler thing.

Regards,
Daniele

1 jun 2011 kl. 19:51 skrev Aurélien Bénel <[email protected]>:

> Hi Daniele,
>
>> Shouldn't that be up to the user? Why would the database protect me from 
>> that. [...]
>> I don't see the problem why the user cannot specify something like 
>> "_rev=latest".
>
> Well, if you really want to bypass the conflict check, you can do this with 
> an update handler.
>   http://wiki.apache.org/couchdb/Document_Update_Handlers
>
> But it's at your own risk ;)
>
>
> Regards,
>
> Aurélien

Reply via email to