> Is a <cftransaction> block single threaded, or do I have to
> provide my own database side locking for it? The docs aren't
> very clear on this at all.
That's the whole point of CFTRANSACTION. It treats the queries it contains
as a single transaction. To provide transactional functionality, the
database locks records.
You can specify how CFTRANSACTION places and respects locks using the
ISOLATION attribute. By default, it uses "READ_COMMITTED", which instructs
the database to place any locks needed by the transaction, and to respect
any locks that other transactions have placed. You can make the isolation
level more optimistic (more likely to disregard locks) or more pessimistic
(more likely to fail if it encounters locks).
The Allaire documentation doesn't cover this at length because it's a topic
for your database documentation.
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists