May you also state whether you have upgraded the framework by the way or not? It seems highly probable to me you have do so, due to the old version of NHibernate on which you were, and then the performance degradation could also come from that. That would be a performance regression in reading System.Transactions.Transaction.Current. So far it is the sole hypothesis I come with for explaining why you would see also a degradation with regular transactions. But it should also happen without any transaction, if that was only this.
Moreover, so far the only reports have come from people upgrading from NHibernate versions older than 4.x, so from people which were very likely to also upgrade from an .Net Framework older than v4.x. It would be great if people having that trouble can check if running their application with the old NHibernate but on an updated Framework does not already demonstrate a performance issue. Le vendredi 29 juin 2018 02:20:12 UTC+2, Sravan Kumar a écrit : > > > Recently Upgraded our mission critical application to use NH 5.1 from NH > 3.3. NH 5.1 performance is comparable to NH 3.3 when not using transactions > but > it drops down dramatically when using Transactions. The degradation is > happening either using NHibernate ITransaction or Transaction scopes. > Seems like whole Transaction handling has been revisited from NH 5.0. Is > there is any setting that needs to be turned on to bring the performance > back to normal. > > Here is the session factory configuration > > > <entry key="hibernate.connection.connection_string" value="XXXXX" > /> > <entry key="hibernate.connection.provider" value= > "NHibernate.Connection.DriverConnectionProvider"/> > <entry key="dialect" value="NHibernate.Dialect.MsSql2012Dialect"/> > <entry key="connection.driver_class" value= > "NHibernate.Driver.SqlClientDriver"/> > <entry key="current_session_context_class" value="wcf_operation" > /> > <entry key="show_sql" value="true"></entry> > <entry key="command_timeout" value="12000"></entry> > <entry key="track_session_id" value="false"></entry> > > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nhusers/064163e2-cc84-464b-9e98-4de0cb12a674%40googlegroups.com.
