开启数据库事务时,出现QuestDB链接异常提示 返回

程序在运行await DbScoped.SugarScope.BeginTranAsync()时,抛出了
The connection pool has been exhausted, either raise MaxPoolSize (currently 100) or Timeout (currently 15 seconds)DbType="QuestDB";ConfigId="MesIndexData".
English Message : Connection open error . The connection pool has been exhausted, either raise MaxPoolSize (currently 100) or Timeout (currently 15 seconds)DbType="QuestDB";ConfigId="MesIndexData"
这个异常,这是开启时还把QuestDB开了新链接吗?
热忱回答(3)
-
fate sta VIP0
2025/12/192种情况
1、并发高情况 超出数据库处理能力
2、没有并发的情况,那么就是代码导致的没有关闭链接( 比如begin和end中间如果有return需要提交事务等)
0 回复 -
贝壳里的心 VIP0
2025/12/19var questDbClient = DbScoped.SugarScope.GetConnectionWithAttr<TDBEntity>();是否和这种写法有关?
我看还有 var questDbClient = DbScoped.SugarScope.GetConnectionScopeWithAttr<TDBEntity>();这种写法
0 回复 -
fate sta VIP0
2025/12/19情况是1或者2
0 回复