| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Jerry Schwartz | Date: | June 4 2007 8:09pm |
| Subject: | RE: Lock Tables Question | ||
| View as plain text | |||
Whatever you do, make sure that every bit of code that locks multiple resources locks them in the same order. That's the only way to avoid deadlocks. Regards, Jerry Schwartz The Infoshop by Global Information Incorporated 195 Farmington Ave. Farmington, CT 06032 860.674.8796 / FAX: 860.674.8341 www.the-infoshop.com www.giiexpress.com www.etudes-marche.com > -----Original Message----- > From: David T. Ashley [mailto:dashley@stripped] > Sent: Monday, June 04, 2007 3:54 PM > To: mysql@stripped > Subject: Re: Lock Tables Question > > On 6/4/07, Gerald L. Clark <gerald_clark@stripped> wrote: > > > > David T. Ashley wrote: > > >> > >> LOCK TABLE thistable, thattable, theothertable, > >> goshthislistcangetlongtable; > >> Do whatever is needed; > >> UNLOCK TABLES; > > >You could use a string lock for this. > > Thanks for the suggestion. It looks logically correct. > > I'd like to stay away from a string lock if possible because > other database > users could interfere with it (it is server global, and not > tied to the > database). > > My original question is still of interest to me ... > > Thanks. >
| Thread | ||
|---|---|---|
| • Lock Tables Question | David T. Ashley | 4 Jun |
| • Re: Lock Tables Question | Gerald L. Clark | 4 Jun |
| • Re: Lock Tables Question | David T. Ashley | 4 Jun |
| • RE: Lock Tables Question | Jerry Schwartz | 4 Jun |
| • Re: Lock Tables Question | David T. Ashley | 4 Jun |
| • Re: Lock Tables Question | Gerald L. Clark | 4 Jun |
| • Diff between restore from tar and recover from power outage | murthy gandikota | 4 Jun |
| • Re: Diff between restore from tar and recover from power outage | Wm Mussatto | 4 Jun |
| • Re: Diff between restore from tar and recover from power outage | Scott Tanner | 5 Jun |
| • Re: Diff between restore from tar and recover from power outage | mos | 5 Jun |
| • Re: Diff between restore from tar and recover from power outage | Baron Schwartz | 5 Jun |
| • Re: Lock Tables Question | David T. Ashley | 4 Jun |
| • Re: Lock Tables Question | Brent Baisley | 5 Jun |
| • Re: Lock Tables Question | David T. Ashley | 5 Jun |
| • Re: Lock Tables Question | Baron Schwartz | 5 Jun |
| • Re: Lock Tables Question | David T. Ashley | 5 Jun |
| • Re: Lock Tables Question | Paul McCullagh | 5 Jun |
