-->
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: High traffic usage
PostPosted: Thu May 12, 2011 8:14 pm 
Newbie

Joined: Thu May 28, 2009 12:28 pm
Posts: 11
Hi, I'm working in a project to compare the performance of native end orm access do database.

I made some tests with hibernate and simple jdbc using postgres database and got a strange result. Even for a simple operation like insert, Hibernate generates a lot more network traffic.

Example: Inserts (1000 register)

insert into curso(carga_horaria, ementa, nome, area) values($1,$2,$3,$4)
VS
insert into curso (area, carga_horaria, ementa, nome) values ($1, $2, $3, $4) RETURNING *

The returning should be probably the problem, wouldn't be enough to return only the id? That can mean almost 2x or more traffic usage.

I don't have with me the chart data right now, but even for other operations the traffic usage is very high (always 2x) than the native counterpart.

Is there any tweak for this?

I'm using Hibernate 3.6.

Thanks in advance,


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.