-->
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.  [ 2 posts ] 
Author Message
 Post subject: n+1 + Cartesian produc + Gigaspaces + L2 Cache + Local Space
PostPosted: Mon May 12, 2008 1:09 pm 
Newbie

Joined: Mon May 12, 2008 1:00 pm
Posts: 1
Hibernate: 3.0

Hi All,

I’ve been reading Java Persistence with Hibernate, very nice book by the way.

It talks about n+1and Cartesian product problems.

Do these problems still apply if using a L2 Cache and there is an embedded copy of the cache inside the application?

Just to clarify this point we are developing an application that uses Gigaspaces technology for level 2 Hibernate cache. There is a remote master space and also a embedded local spaces (within the same memory space of the application) that contains a copy of the master, that’s ok as the database is small enough.

Thanks for your help.

Java Penguin


Top
 Profile  
 
 Post subject: Re: n+1 + Cartesian produc + Gigaspaces + L2 Cache + Local S
PostPosted: Tue May 13, 2008 11:34 am 
Newbie

Joined: Thu May 13, 2004 6:32 am
Posts: 4
Location: USA
When running a in a master local topology you should remember that insert/update operations would be relatively expensive. This would need to go both into the remote space , update the local cache and also go into the database in serial manner.

note the the local space is sync with the master copy via notifications that are async by nature. So there will be a small delay between the master copy update and the local copy update.

Shay


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

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.