Results 1 to 14 of 14
  1. #1
    sankarguru is offline Member
    Join Date
    Mar 2009
    Location
    India
    Posts
    16
    Rep Power
    0

    Question Hibernate Performance Tuning..

    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

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    And the documentation says what about this?

  3. #3
    sankarguru is offline Member
    Join Date
    Mar 2009
    Location
    India
    Posts
    16
    Rep Power
    0

    Default

    what are you asking, masijade
    i can't understand.
    i am getting some performance issue in hibernate. i want to know some solutions..

  4. #4
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    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.)

  5. #5
    sankarguru is offline Member
    Join Date
    Mar 2009
    Location
    India
    Posts
    16
    Rep Power
    0

    Default

    i already checked that document.
    how to avoid memory leakage in hibenate.

  6. #6
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Don't hang on to references of things longer than absolutely needed, and that includes ResultSets, Statements, and Connections.

  7. #7
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    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

  8. #8
    sankarguru is offline Member
    Join Date
    Mar 2009
    Location
    India
    Posts
    16
    Rep Power
    0

    Default

    Thanks.
    how to create inner join and outer join in hibernate, if u possible send some code

  9. #9
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

  10. #10
    sankarguru is offline Member
    Join Date
    Mar 2009
    Location
    India
    Posts
    16
    Rep Power
    0

    Default

    Thanks for your valuable inputs..

  11. #11
    arseny is offline Member
    Join Date
    Mar 2009
    Posts
    25
    Rep Power
    0

    Default

    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.

  12. #12
    sankarguru is offline Member
    Join Date
    Mar 2009
    Location
    India
    Posts
    16
    Rep Power
    0

    Default

    where i have to use this evict() method,
    In sessionfactory or pojo class

    Sankarguru

  13. #13
    arseny is offline Member
    Join Date
    Mar 2009
    Posts
    25
    Rep Power
    0

    Default

    Session.evict(<loaded or saved object>)
    // I told about the session cache

  14. #14
    sankarguru is offline Member
    Join Date
    Mar 2009
    Location
    India
    Posts
    16
    Rep Power
    0

Similar Threads

  1. Performance Issue
    By hiranya in forum Threads and Synchronization
    Replies: 2
    Last Post: 11-24-2008, 11:32 PM
  2. performance is degraded in 1.6
    By jagadeeshchinni in forum New To Java
    Replies: 1
    Last Post: 10-22-2008, 04:24 PM
  3. performance problem on osx
    By coldnebo in forum Advanced Java
    Replies: 3
    Last Post: 08-01-2008, 09:39 PM
  4. Performance Hibernate against jdbc api
    By javadev in forum JDBC
    Replies: 2
    Last Post: 06-05-2008, 03:37 PM
  5. Replies: 2
    Last Post: 06-30-2007, 03:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •