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?
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.