facebook

Hiberante Performance Issue [Closed]

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #236646 Reply

    I’m using
    MyEclipse4 Final with Eclipse 3.1 on Tomcat 5.0.28
    Hibernate 2
    Oracle 9iR2 (which has no perfomance problems!!!)

    The Database contains about 50 Tables, and my Application needs about 10 of them. After linking one table with the Database-Explorer, Hibernate needs all tables related to this one and so on…. So in fact, it would be necessarry to map all tables to hibernate.
    However, I wont do that (because it is nonsense), and edited some XXX.hbm.xml files to get it work.

    Now my problem – It takes a very very long time to fetch some rows with a Hibernate query (but it is working). For example, a “return query.list” where query is a Statement which should return all rows of a table containing 4 rows takes about 5 minutes!

    Anyone an idea whats going wrong? Is my problem related to the deletion of some mappings in the hbm.xml-files?

    greetings Martin

    #236647 Reply

    Thomas Trostel
    Participant

    It may be that your program is pulling in child records for that table also. Are you querying for a top level table which is refered to by other entries?

    #236662 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev, Hibernate performance is one of the biggest topics in the Hibernate forums, these guys can usually help with suggestions and I would tend to agree with ttrostel, most Hibernate issues are due to you pulling more records than you actually think you are pulling.

    #236669 Reply

    @ttrostel wrote:

    It may be that your program is pulling in child records for that table also. Are you querying for a top level table which is refered to by other entries?

    thx for answering!

    my table design

    HelpTable
    ——-
    Helptable_id
    description

    Table
    ———-
    ID
    Helptable_id
    ….
    ….

    I would like to fetch all records of HelpTable, which has a foreign key referenced from table to the helptable_id.
    The table named “table” references to many other tables…

    I think you are right, that hibernate fetches data I do not need. How can I control that? Any suggestions?

    greetings Martin

    #236758 Reply

    Problem solved: was a problem with my query. It seems to be necessarry to define every returning object like shown in my posting “Struts and Hibernate Listbox”.

    greetings
    Martin

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Hiberante Performance Issue [Closed]

You must be logged in to post in the forum log in