Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Data Cahe mechanism in Applications

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34410
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends on your application. For example, maybe this site would cache the list of forums.
 
Velu Kasirajah
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 251
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ravi,

What actual performance problem are you resolving with caching?

Kees Jan
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic