Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cflock - when to use it 4

Status
Not open for further replies.

leadman

Programmer
Jun 11, 2001
177
US
Im not really sure when to use cflock and when not to. For instance, im using a custom tag that gets shippig prices from UPS. many users may be calling this tag at once - does that mean i need to use cflock?
 
Hi Leadman,

For selecting data out your database with a SQL-query you don't have to lock anything to get the data. You can just read out of the table.

When you lock a record in a table, you say I'm at THIS moment editing this record, so knowone may edit the record from now on, until I release the lock, and I tell the database that other people may edit (I mean modify) the record, because I've made the modifications.

When a record is locked, everyone can read the data in the record, but the can't delete the record or make modifications to it. This can only be done by the one who has the lock.

BW the sql-statements delete, insert, update are taking care by themself with record locks.

I hope this cleared the definition lock,

Charl
 
The subject of locking has been extensively discussed on the CF-Talk forum. House of Fusion hosts CF-Talk at If you check the mail archives you're sure to find many threads, some of which include links to further information.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top