| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Baron Schwartz | Date: | June 5 2007 1:42pm |
| Subject: | Re: Lock Tables Question | ||
| View as plain text | |||
David T. Ashley wrote: > There is no concept that I'm missing. I understand what a transaction is. > But I just don't want to bothered. My application is simple enough that > bogarting the database until all necessary modifications have been made and > the tables are again consistent is good enough. > > Collisions are handled by serialization. Period. Somebody wins. Everyone > else waits. Works for me. Then the simplest possible thing to do (besides using transactions, which IMO would actually be a LOT less bother!) is use GET_LOCK('database_name'). That should handle your requirement to make locks 'database-local.' In my experience, using LOCK TABLES becomes a spaghetti problem that begins to involve more and more things until you are going through *serious* contortions. I would avoid it at all costs. Baron
| 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 |
