Hi all,
we are using Hibernate 3.0, it's quite good
i want to know, what are the ways we can tune hibenate for getting best performance. give me some solutions
Thanks in advance
Sankarguru
Printable View
Hi all,
we are using Hibernate 3.0, it's quite good
i want to know, what are the ways we can tune hibenate for getting best performance. give me some solutions
Thanks in advance
Sankarguru
And the documentation says what about this?
what are you asking, masijade
i can't understand.
i am getting some performance issue in hibernate. i want to know some solutions..
Then it might help to post what those issues are, but Hibernates documentation contains some performance tuning measure reccomendations, as does the hibernate website. Have you checked those resources, yet? (No, I'll bet.)
i already checked that document.
how to avoid memory leakage in hibenate.
Don't hang on to references of things longer than absolutely needed, and that includes ResultSets, Statements, and Connections.
And, like I said, it might help to describe what "performance" problems you're having. But, in any case, run it through a profiler.
And, before you ask, Let me google that for you
Thanks.
how to create inner join and outer join in hibernate, if u possible send some code
Have you checked these out (something tells me not)
hibernate.org - Wiki Overview
hibernate.org - Documentation Overview
HIBERNATE - Relational Persistence for Idiomatic Java
Chapter*5.*Basic O/R Mapping
Thanks for your valuable inputs..
I always had a problem with the hibernate when the session was opened for a long period and a lot of objects were stored or loaded with it. All those objects were placed in to the session cache. Most of hibernate operation checks if the object is in session cache. The checking become take a time when there a lot of objects. So, you can use evict() method for unused any more stored or loaded objects while the session is open.
where i have to use this evict() method,
In sessionfactory or pojo class
Sankarguru
Session.evict(<loaded or saved object>)
// I told about the session cache
Thanks for ur reply, i think, it will wrok
..
Sankarguru