-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: hibernate second level cache, hard polling, clustered,
PostPosted: Mon Jan 28, 2008 6:58 am 
Newbie

Joined: Mon Jan 28, 2008 6:40 am
Posts: 1
hi!

i have a mysql5 db, with hibernate 3, frame generated by myeclipse.

for example i have 1000 clients, with polling every 2sec for server.
server make a query, and execute it. (2 table joined). Probably, this will overload the database. ( 500 query / sec ) I would like to use 2nd level cache. Later it will be clustered, so the best for me, is the threecache implementation. The database will be modified by hibernate only (mostly), but in cluster.

my questions is:
1., I need something like keep these 2 tables all entities in memory, only write changes to database, but for query use the cache. (and sync cache through cluster members). (these 2 tables have about 10k records constantly)
this is what 2nd level cache for?

this will decrease the database server load ?


2., in a clustered environment, data changing in one member, how will visible by the others? (using cluster able second cache)
read the docs, it seems so easy... it is?

thx
regards,
Szabi


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.