tag:blogger.com,1999:blog-1742357634203179455.post983708984908361591..comments2012-09-06T06:10:41.302-07:00Comments on Behold The Apocalypse: My experiences with Hibernate - Part 1Unknownnoreply@blogger.comBlogger4125tag:blogger.com,1999:blog-1742357634203179455.post-43544740117946032722012-09-06T06:10:41.302-07:002012-09-06T06:10:41.302-07:00I think you mean you had some crud operation over ...I think you mean you had some crud operation over a detached instance and it was taking a lot of time. So then it would be time for looking at the associations of the object and the cascade options. Looks like you had many detached objects and each object had many associations which too needed to be updated. Here you will be forced to examine the type of sql query and the number of sql queries hibernate was generating. More often, you can find some configuration or optimizations to work around your issue. Also there are options of batch operations in Hibernate.Shailendra kumarhttps://www.blogger.com/profile/08448760663409062816noreply@blogger.comtag:blogger.com,1999:blog-1742357634203179455.post-23156892897097748012012-09-06T06:05:13.869-07:002012-09-06T06:05:13.869-07:00I completely agree with you. I usually love to kno...I completely agree with you. I usually love to know about the internals of the framework and concepts I am using however My point was that in case of Hibernate I had to be aware too much and in the back of my mind I was always thinking what SQL it must be generating. Having said that, for the task of mapping these two unrelated concepts Hibernate does good job.Shailendra kumarhttps://www.blogger.com/profile/08448760663409062816noreply@blogger.comtag:blogger.com,1999:blog-1742357634203179455.post-6019428998970987332012-09-06T04:23:23.394-07:002012-09-06T04:23:23.394-07:00Detached queries can be way too expensive, I remem...Detached queries can be way too expensive, I remember a query taking 5 minutes to return!!!Unknownhttps://www.blogger.com/profile/17354730266545733075noreply@blogger.comtag:blogger.com,1999:blog-1742357634203179455.post-53765960578609850442012-09-06T02:26:59.987-07:002012-09-06T02:26:59.987-07:00I agree that you must know what is hibernate doing...I agree that you must know what is hibernate doing behind the scenes, but it's ok, because Hibernate IS NOT an abstraction ! It's a framework. Persistence doesn't hide the database from you, it just save you from writting boilerplate code to bind your data to your objects.<br /><br />Besides, even some abstractions require you to know what they are doing. A lot of pain in modern development come from people using APIs without knowing a thing about what's going onwaddlehttps://www.blogger.com/profile/09869559469299459929noreply@blogger.com