aspose file tools*
The moose likes Performance and the fly likes Using Data Cahe mechanism in Applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Using Data Cahe mechanism in Applications " Watch "Using Data Cahe mechanism in Applications " New topic
Author

Using Data Cahe mechanism in Applications

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi

It is said that Data Caching mechanism increases the performance , as Databates hits will be less and Data will be retreivied from the cache .
So generally there are number of 3rd party cache mechanisms available for this .


But please tell me generally what type of Objects will be generally cached ??Can anybody please give me a scenario.


Save India From Corruption - Anna Hazare.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29287
    
140

Depends on your application. For example, maybe this site would cache the list of forums.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Velu Kasirajah
Greenhorn

Joined: Feb 06, 2010
Posts: 15
Static look up data are usually good candidates for caching. For instance, the list of options used by your web pages or any such static data. Apps typically load and cache them at the beginning or when they are needed for the first time (lazy loading). Complex objects that are expensive to create are also cached (typically lazy loading). Hope that helps.

Velu Kasirajah


Velu Kasirajah
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

For instance, the list of options used by your web pages


You mean Kepping hyperlink data as to maintain cache ??


Kees Jan Koster
JavaMonitor Support
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
Dear Ravi,

What actual performance problem are you resolving with caching?

Kees Jan


Java-monitor, JVM monitoring made easy <- right here on Java Ranch
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi

Thank you all for your suppourt .

I have now realised that i dont have any frequently accessed data , so i decided not to use the Second Level cache (Hibernate in my case )



Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

A nice quote from Donald Knuth, just keep that in mind
"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil"


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Data Cahe mechanism in Applications
 
Similar Threads
Better caching mechanism for Jboss portal
callback and lifecycle methods
Regarding caching solution
Accelerating Query in the LDAP Proxy
Using Query cache and second level cache