在 c# 的事务范围中设计了一个选择 sql 查询(例如从 table1 中选择 *)。通常有一个环境事务,但是如果我在执行这个 sql 查询时抑制环境事务,是否有性能提升?
using (TransactionScope scope1 = new TransactionScope())
{
// here there are some business processes
using (TransactionScope scope1 = new TransactionScope(TransactionScopeOption.Suppressed)) //Is this suppressed transaction scope useful in terms of performance?
{
//Here there is a select sql query with no lock table hint.
}
}