On Wed, Mar 01, 2006 at 05:23:05PM +0100, Denis Sbragion wrote:
> Insert records as "processing by writer", update them to "ready to be
> processed" with a single atomic update after a burst of inserts, update the
> status of all "ready to be processed" records to the "to be processed by
> reader" status with another single atomic update in the reader, process all
> the "to be processed by reader" records, mark all the "to be processed by
> reader" records as "processed" again with a single atomic update when
> finished, if needed delete "processed" records.

FWIW, the performance of that would be pretty bad in most MVCC
databases, because you can't do an update 'in place' (Ok, Oracle can,
but they still have to write both undo and redo log info, so it's
effectively the same as not being 'in place' unless you have a lot of
indexes and you're not touching indexed rows).
-- 
Jim C. Nasby, Sr. Engineering Consultant      [EMAIL PROTECTED]
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

Reply via email to