incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Smith <>
Subject Re: put and no _rev
Date Fri, 06 Mar 2009 19:02:13 GMT
aju wrote:
> in a RDBMS when you update an existing row (document) it is a single 
> step. (there's no revision term here obviously). likewise in subversion 
> when you commit an updated document it is a single step.

Well in a RDBMS if you have a common constraint like uniqueness on a 
column, you have to decide whether to INSERT or UPDATE.  So most likely, 
you will grab a big lock, SELECT something, process the data, INSERT or 
UPDATE, then release the lock.  So that's two queries as well.

Jason Smith
Proven Corporation
Bangkok, Thailand

View raw message