DotNetNext / SqlSugar

.Net aot ORM Fastest ORM Simple Easy VB.NET Sqlite orm Oracle ORM Mysql Orm 虚谷数据库 postgresql ORm SqlServer oRm 达梦 ORM 人大金仓 ORM 神通ORM C# ORM , C# ORM .NET ORM NET5 ORM .NET6 ORM ClickHouse orm QuestDb ,TDengine ORM,OceanBase orm,GaussDB orm ,Tidb orm Object/Relational Mapping
https://www.donet5.com/Home/Doc
MIT License
5.17k stars 1.32k forks source link

linux sqlserver 08 下关联查询返回匿名类型时慢 #1224

Closed shenglingshi closed 4 months ago

shenglingshi commented 4 months ago

同一个ISugarQuerable关联表达式,当查询返回 匿名类型与 直接返回实体类列表时, 两个关联表数据量都不大,一个2K左右,一个3W左右,查询结果数据集大概1K-2K之间 windows下速度很快,但是Linux下速度很慢,差异很大。 环境:docker mcr.microsoft.com/dotnet/aspnet:5.0 镜像+NET5+SqlServer2008+SqlSugar5.1.4.59+ToArrayAsync()方法获取数据

企业微信截图_1708487964769

DotNetNext commented 4 months ago

升级最新试试

DotNetNext commented 4 months ago

还有数据库的补丁打全,不建议linux用2008,太老版本库异步可能支持不好,或者改同步试一下

shenglingshi commented 4 months ago

好的。

shenglingshi commented 4 months ago

升级最新试试

我们的 Sql Server 2008 是部署在Windows 下的,程序跑在Linux的镜像里。

DotNetNext commented 4 months ago

建议用sqlsever 2017+在Linux ,如果还有问题提供远程字符串可以重现的DEMO

DotNetNext commented 4 months ago

另外sqlsugar要升级最新

shenglingshi commented 4 months ago

建议用sqlsever 2017+在Linux ,如果还有问题提供远程字符串可以重现的DEMO 好的,感谢百忙之中回复。

DotNetNext commented 4 months ago

还有疑问吗?

DotNetNext commented 4 months ago

时间长未回复,还有疑问发新的issue