I've been thrown into researching a database performance issue with a new application using NHibernate. I noticed that on some tables NH does an insert of a row followed by an update of the same row with exactly the same data. What I have gathered so far is that updates after inserts are done on tables that have many-to-one relationships defined.
In any case, I would have expected that NH figures that the data is the same and suppresses the extra update. Is there a way to suppress this extra update at all?