-->
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: mapping overhead looks to be more important as I've expected
PostPosted: Tue May 24, 2005 3:45 am 
Newbie

Joined: Tue May 10, 2005 8:08 am
Posts: 3
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

3.03

Problem:

I'm trying to introduce hibernate into our already existing application. The goal is to use it for new development and every time we need to rewrite an already existing part. I was asked to do some prototyping on concrete examples form our application.

I have found out that if I use fast running SQL queries (lookup by primary - key no joins) then overhead of hibernate’s code runs 2 time slower than pure JDBC implementation. I know that these are trivial benchmarks and there have been already a lot of discussion about it on this site . However our application is doing millions of such queries per day and I can’t easily sell hibernate and tell that now it will just run twice slower.
To prove that the problem is somewhere in the mapping I tried to create a third implementation - still using hibernate by returning scalar results. It performs as well as simple JDBC.

Do you have any idea what could be done for such trivial queries to reduce mapping overhead?
I have expected that with byte code generation it shouldn't be so bad.

And please don’t forward me to Performance FAQ. I have read it several times. (-:


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2005 10:26 am 
Regular
Regular

Joined: Tue May 24, 2005 10:19 am
Posts: 65
you can try use the query cache.


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.