Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: seperation of process

  1. #11
    Join Date
    Aug 2006
    Location
    Now Germany, previously Ukraine
    Posts
    1,546

    Default

    What may help you to improve startup time is dynamic-insert=true and dynamic-update=true in your class mappings. The problem is that these settings can not be specified globally and as well are not inherited, so they shall be specified individually on each class, subclass and joined-subclass element in your mappings.

    In the presence of these settings Hibernate does not try to generate and cache for future use insert and update statements for each and every table in mapping right on startup, but does it only when statement has to be used (in which case only affected columns are included in the statement). Some times it is good for performance, sometimes -bad, but anyhow for big schemas startup time is be greatly reduced.

    Another possible optization is to mark all immutable classes (if any) as such (mutable="false"). "Immutable" in this context means that your application never update or delete objects of this classes in/from DB.

    Regards,
    Oleksandr


    Quote Originally Posted by sudha_parimala View Post
    Hmmm, I would like to do the same.....
    I 'll give u info about our data model may be u can give me some pointers of how to go about this.
    Our data model is having around 2000+ tables. the associations are also closely knitted. For some reasons i must do the entire data loading with which i can't avoid any objects..... is there a way we can dynamically load the objects only on demand and the same for the the associated objects also...

    Sudha

  2. #12
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    As has already been said, it would be useful to narrow down exactly what is taking the time. Presumably it is your LocalSessionFactoryBean. It does sound like you want to allow different parts of your context to be restarted and others to be left alone. Have you looked into OSGi?
    Last edited by karldmoore; Aug 27th, 2007 at 03:49 PM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  3. #13

    Default

    Hi Karl,
    I am trying to look into the actual content that's loading time. meanwhile i'll also look into OSGi. Tks for your valuable suggestions. I'll keep posing my findings. pls let me know if you have any other suggestions.

    Regards

  4. #14
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Quote Originally Posted by sudha_parimala View Post
    I am trying to look into the actual content that's loading time.
    That would be useful to know, it does sound like an awful long time to startup.

    Quote Originally Posted by sudha_parimala View Post
    meanwhile i'll also look into OSGi.
    I'm not sure if it will help, but it does seem like you potentially want to take part of the application down and leave the rest running. This could be an interesting fit.

    Quote Originally Posted by sudha_parimala View Post
    Tks for your valuable suggestions. I'll keep posing my findings. pls let me know if you have any other suggestions.
    Looking forward to seeing what you come back with!
    Last edited by karldmoore; Aug 27th, 2007 at 03:49 PM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

Posting Permissions

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