title: FluentNHibernate: Performance Penalty when mapping Reference with NotFound.Ignore()
body: <p>I use FluentNhibernate and I see NHibernate performing many queries when references of associations are mapped with <code>NotFound.Ignore()</code>.</p>
  
  <p>Since the referential integrity of my legacy database is kinda crappy, I'd like to know if there's a workaround or if there's an alternative mapping I can use.</p>
  
  <p>Example:</p>
  
  <pre><code>//no query when loading the entity
  References&lt;User&gt;(x =&gt; x.User, "UserId").LazyLoad().Nullable();
  
  //performs a hundred queries when I load my entities
  References&lt;User&gt;(x =&gt; x.User, "UserId").LazyLoad().Nullable().NotFound.Ignore();
  </code></pre>