tag:blogger.com,1999:blog-1280619439915049383.post106554668694543883..comments2024-03-17T02:14:58.129-05:00Comments on James Lorenzen's Blog: Grails: Lessons Learnedjlorenzenhttp://www.blogger.com/profile/13635369821860631868noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-1280619439915049383.post-8560369232876824472011-03-16T06:24:38.670-05:002011-03-16T06:24:38.670-05:00High grade assistance; I am going to undoubtedly c...High grade assistance; I am going to undoubtedly come back to your website for extra know-how. <br /><a href="http://www.phelpstraining.com/index.php/member/85292/" rel="nofollow">Memphis Locksmith</a>Unknownhttps://www.blogger.com/profile/08461361907634926522noreply@blogger.comtag:blogger.com,1999:blog-1280619439915049383.post-87946433319545219972010-06-12T04:42:53.198-05:002010-06-12T04:42:53.198-05:00Flyff private Flyff server top 1...<a href="http://xgametop.com/Flyff.html" rel="nofollow">Flyff private Flyff server top 100</a>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1280619439915049383.post-67780595915047089912010-06-12T04:41:31.273-05:002010-06-12T04:41:31.273-05:00Flyff private Flyff server top 1...<a href="http://xgametop.com/Flyff.html" rel="nofollow">Flyff private Flyff server top 100</a>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1280619439915049383.post-22070651138963904972009-09-30T11:40:28.012-05:002009-09-30T11:40:28.012-05:00This comment has been removed by a blog administrator.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1280619439915049383.post-32464909875843041232009-09-30T11:43:12.042-05:002009-09-30T11:43:12.042-05:00This comment has been removed by a blog administrator.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1280619439915049383.post-77659169601507911522009-01-13T11:18:00.000-06:002009-01-13T11:18:00.000-06:00I have a a one to many relationship where a parent...I have a a one to many relationship where a parent has like thousands of kids, for which I have to do:<BR/><BR/>new Parent(name: "James").addToKids(name: "kid1").<BR/>.........<BR/>addTokids(name, "kid2000").save()<BR/><BR/>Is there a better way to do adding than this?. Any advices?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1280619439915049383.post-2338396988984588382008-07-24T00:05:00.000-05:002008-07-24T00:05:00.000-05:00On the eager fetching another thing to do would be...On the eager fetching another thing to do would be to enable batch fetching or sub select fetching. Even if you forget to explicitly specify the fetch while querying hibernate will optimize the fetch (load associated objects / collections in batches rather one at a time), this would suffice for most cases.<BR/><BR/><A HREF="http://www.hibernate.org/hib_docs/reference/en/html/performance.html" REL="nofollow">Hibernate fetch strategy</A><BR/><BR/>For the parent child relationship it is probably better to modify the cascade attribute on the collection to all,orphan-delete. With this option you just need to remove the element from the parent collection and hibernate will delete the orphaned child object automatically.Anonymousnoreply@blogger.com