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,
|