RE: Doing multiple updates

2001-01-29 Thread Cal Evans
s?? Randy -Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 4:10 PM To: Randy Johnson; [EMAIL PROTECTED] Subject: RE: Doing multiple updates Randy, My recommendation (and there are probably many people who will disagree with me) is to use a "so

RE: Doing multiple updates

2001-01-29 Thread Randy Johnson
al Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 4:10 PM To: Randy Johnson; [EMAIL PROTECTED] Subject: RE: Doing multiple updates Randy, My recommendation (and there are probably many people who will disagree with me) is to use a "soft-lock" sche

RE: Doing multiple updates

2001-01-26 Thread Randy Johnson
Can somebody provide me with some sample code for the following. I read it over in the manual but am still lost. thanks Randy +++ Sounds like you want a mutex and you can use get_lock and release_lock in mysql for that. http://www.mysql.com/doc/M/i/Miscellaneous_functions.html GET_LO

RE: Doing multiple updates

2001-01-24 Thread Mark Maunder
use a soft lock like you've described. I dunno. -Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 9:10 PM To: Randy Johnson; [EMAIL PROTECTED] Subject: RE: Doing multiple updates Randy, My recommendation (and there are probably many

RE: Doing multiple updates

2001-01-24 Thread Cal Evans
Randy, My recommendation (and there are probably many people who will disagree with me) is to use a "soft-lock" schema. In your account table, add a field named lockedBy. I usually add a field named lockedAt also as a timestamp. the basic flow is this: 1: Check to see if the record has somethi

RE: Doing multiple updates

2001-01-24 Thread Mark Maunder
Sounds like you want a mutex and you can use get_lock and release_lock in mysql for that. http://www.mysql.com/doc/M/i/Miscellaneous_functions.html GET_LOCK(str,timeout) Tries to obtain a lock with a name given by the string str, with a timeout of timeout seconds. Returns 1 if the lock was obta