-->
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: Performance oscache/ehcache vs. homebrew HashMap
PostPosted: Fri Apr 02, 2004 9:25 am 
Newbie

Joined: Fri Apr 02, 2004 9:18 am
Posts: 1
Hi,

I am new to hibernate and am trying to import a big xml file with hierarchical data into classes persisted by hibernate.

During import I need the parent of each node. The time used for session.get(parentid) increases dramatically over time. When I start the import it takes approx. 20ms per node and after having imported 8000 nodes it takes 500 ms and more. Importing 120000 nodes takes forever.

When using a homebrew HashMap that maps the parentid to the node object the time per node is constantly around 10ms!

Aren't oscache/ehcache using HashMaps as well? How come there is that big performance difference that increases over time?

Thanks for help,

Ralf


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 02, 2004 1:49 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
If you persist the cache on the disk, it may explains.
Try the simple hashmap cache to compare

_________________
Emmanuel


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.