﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on Performance: Multiply Collections Fetch With NHibernate</title><description>Just grab the latest bits
</description><link>http://ayende.com/2228/performance-multiply-collections-fetch-with-nhibernate#comment3</link><guid>http://ayende.com/2228/performance-multiply-collections-fetch-with-nhibernate#comment3</guid><pubDate>Mon, 19 Mar 2007 14:16:26 GMT</pubDate></item><item><title>Roger commented on Performance: Multiply Collections Fetch With NHibernate</title><description>I've been waiting for this feature a long time! Perfect!
  
  
Can you please inform where to find this update?
</description><link>http://ayende.com/2228/performance-multiply-collections-fetch-with-nhibernate#comment2</link><guid>http://ayende.com/2228/performance-multiply-collections-fetch-with-nhibernate#comment2</guid><pubDate>Mon, 19 Mar 2007 14:07:51 GMT</pubDate></item><item><title>Dan commented on Performance: Multiply Collections Fetch With NHibernate</title><description>Wouldn't the following be just as efficient, without the chance of getting a huge Cartesian product?
  
  
IList list = (IList)session.CreateMutliQuery()
  
 .Add("from Blog")
  
 .Add("select p from Post p left join p.Blog b")
  
 .Add("select c from Comment c left join c.Post p left join p.Blog b")
  
 .List()[0];
  
foreach (Blog blog in list)
  
...
  
  
I'm a bit uncertain if I used the right syntax, I mostly use the query API, and the point with the joins is so you can add a where statement to the blog, and simply add the same statement in the other 2 queries to avoid pulling out other posts/comments.
</description><link>http://ayende.com/2228/performance-multiply-collections-fetch-with-nhibernate#comment1</link><guid>http://ayende.com/2228/performance-multiply-collections-fetch-with-nhibernate#comment1</guid><pubDate>Mon, 19 Mar 2007 07:48:14 GMT</pubDate></item></channel></rss>