This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JDBC and the fly likes Lock table in database when doing write operation. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Lock table in database when doing write operation." Watch "Lock table in database when doing write operation." New topic
Author

Lock table in database when doing write operation.

Rudy Rusli
Ranch Hand

Joined: Jun 01, 2006
Posts: 114
Based on my understanding, when we do write operation to a table in database (MYSQL) we lock the table from bein accessed by another processess. But not when we do read operation.
Is this true?

If yes, then is there a way I can turn of some settings so the write operation will not lock the table?
Is there any disadvantages in doing this?

Thanks in advance for the help.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Lock table in database when doing write operation.
 
Similar Threads
question on Lock
Monkhouse DVD example: 2 levels of locking
Table-level locking, how?
a simple question of Locking mechanism
Locking Suggestions and Help