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 Cached Data, Updatable ResultSets 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 "Cached Data, Updatable ResultSets" Watch "Cached Data, Updatable ResultSets" New topic
Author

Cached Data, Updatable ResultSets

Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

I have a concern over using Cached Data and/or Updatable ResultSet (which is a form a cached data I suppose).
How can you possbily ensure consistency on data using cached data and cached result sets with multiple users accessing and updating the database?
My approach has always been to get the data I need, and only what I need, modify it, update it, whatever, then be done with it until needed again. I then started looking into using cached data and updatable resultsets for performance issues, but the more I look into it, the more I don't understand how data can stay consitent and current with multiple users accessing the same data.
I realize there are isolation levels so I can lock tables etc, and I do use that but I only have tables locked for a split second at best when making a change or adding data. But if I lock a table then use cached data to manipulate, the table would be locked for a long period of time, would it not?
Anyone care to give me some advice/input on advantages to cached data as it seems to be the "to do" thing these days?
Thanks.
 
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: Cached Data, Updatable ResultSets
 
Similar Threads
Networking : RMI
IS the locking mechanism in the EXAM CRAM2 book wrong
NX FileChannel & Thread Safety
NX:Locking and synchronization
Data fetch from multiple SQL tables