Meaningless Drivel is fun!*
The moose likes JDBC and the fly likes phantom and dirty read? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "phantom and dirty read?" Watch "phantom and dirty read?" New topic
Author

phantom and dirty read?

kiran kumar
Greenhorn

Joined: May 24, 2008
Posts: 18
Hi,
what is phantom and dirty read?


Thanks & Regards,<br />Bhuvan Samrat.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

rahul, please choose the forum you post your questions in more carefully. None of these questions are advanced Java questions. I'll move this to a more appropriate forum.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Both terms relate to transaction isolation in databases.

A "phantom read" means if you run some sql at one point in time, then run it again later more results may be returned. i.e. between the first and second runs, more data may have been added that satisfies your query criteria.

A "dirty read" is when you can read uncommitted data. i.e. data that may not end up being persisted into the database.
[ June 09, 2008: Message edited by: Paul Sturrock ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: phantom and dirty read?