tag:blogger.com,1999:blog-8781568769983982843.post4374682043905564991..comments2009-06-23T13:41:00.709-07:00Comments on Frameworks Central: Hibernate ShardsCheng Leehttp://www.blogger.com/profile/12625693269929055755noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-8781568769983982843.post-7124085855475352672007-09-18T20:14:00.000-07:002007-09-18T20:14:00.000-07:00Hi Cheng,Just wanted to point out that there can b...Hi Cheng,<BR/><BR/>Just wanted to point out that there can be no such thing as an eagerly fetched cross-shard relationship - it will always require a separate trip to the database to resolve. <BR/>This makes it a bit dangerous to think of a cross-shard relationship the same way you might think about an intra-shard relationship, where you choose a default fetch policy (typically lazy), and then override that fetch policy to be eager for the specific cases where you need the performance boost of pulling back the associated objects as part of the same query. This optimization isn't available with cross-shard relationships. Of course, cross-shard relationships aren't available either. Yet. :-)<BR/><BR/>Max (lead Shards developer)Maxhttps://www.blogger.com/profile/10795965078834917984noreply@blogger.com