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: Do not load already loaded objects
PostPosted: Thu Oct 23, 2008 3:26 am 
Newbie

Joined: Fri Jun 06, 2008 4:40 am
Posts: 3
Hibernate version:1.2 at the moment

My problem
Hi guys,
sorry I ask here in the forum but i didn't found anything in the documentation and with google.

I hope anyone have a good idea for my problem.
I have a DB with up to 10000 objects.

I search in my program after these objects with different criteria with : session.Find


I save the objects I loaded locally, as example I load 5000 objects, and now I want search after more objects with NHibernate, and NHibernate find now 1000 new objects an 2000 already loaded objects.

My Question: Is it possible to say NHibernate he hadn't to load already loaded objects?

sorry for my terrible English.

Greetings
gartenschlauch


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 23, 2008 4:18 am 
Expert
Expert

Joined: Thu Dec 14, 2006 5:57 am
Posts: 1185
Location: Zurich, Switzerland
You're probably looking for the second level cache:

http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/performance.html#performance-cache

_________________
--Wolfgang


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.