> > First of all... Why in lord's name would you want to single
> > thread your DB access?
>
> Fairly common example:
>
> You insert something in the database, and immediately need to
> access the ID of that new thing. You want to single thread the
> insert and select, so the table doesn't change.
Databases do this stuff for you; that's what transactional database
processing is all about. I'd strongly recommend using transactions within
the database to do this instead of CFLOCK. Of course, I suspect that you
already know this, but for the benefit of any other readers, I thought that
I should respond.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists