title: NHibernate Performance
body: <p>Fetching + Deleting an object with NHibernate is extremely slow if it is a more complex object and the database has some data in it already. </p>
  
  <p><strong>Example:</strong><br>
   -  ObjectA (about 150.000 entries in database)
   -  ObjectB referring to ObjectA (about 200.000 entries in database)
   -  ObjectC (one to one relationship to ObjectA)
   -  ObjectD (many to one relationship to ObjectC, about 800.000 entries)  </p>
  
  <p>Deleting ObjectA also deletes all other Objects listed above.
  Deleting 100 ObjectA takes about 12 seconds. What could be the problem, that NHibernate is that slow?</p>
  
  <p>If I delete the same amount of object on an empty database, it only takes about 1-2 seconds.</p>
  
  <p>I already tried to Flush + Clear my Session after about 20 - 30 objects, but that does not make a huge difference.</p>