As discussed at the Orchard meeting of 07.09.2021, for performance reasons linq2db queries shouldn't always open a transaction since for reads this is not necessary. Ideally, we'd have something like ITransactionManager.GetOrCreate() in Orchard or YesSql since YesSql opens transactions only the first time a write query happens, lazily.
See this discussion on what can be used from the linq2db API.
Jira issue
As discussed at the Orchard meeting of 07.09.2021, for performance reasons linq2db queries shouldn't always open a transaction since for reads this is not necessary. Ideally, we'd have something like
ITransactionManager.GetOrCreate()in Orchard or YesSql since YesSql opens transactions only the first time a write query happens, lazily.See this discussion on what can be used from the linq2db API.
Jira issue