update

28810
2020-05-10 23:41:13 +08:00
parent f141b2ba0d
commit ccec22f3cc
2 changed files with 7 additions and 2 deletions

@@ -5,6 +5,7 @@
- 修复 non public ctor #291
- 修复 浮点类型 NoneParameter 不使用科学字符串表示;
- 修复 IgnoreColumns 相关方法解析表达式 a => new [] { "Id" .. } 无效的 bug
- 修复 Column(ServerTime=xxx) MySql 下无法保留精度的问题;
- 修复 ISelect.ToDataTable(lambda) 未使用 AsProperty 返回数据;
- 增加 ISelect.WhereDynamicFilter 方法实现动态过滤条件(与前端交互)[wiki](https://github.com/dotnetcore/FreeSql/wiki/%E6%9F%A5%E8%AF%A2)

@@ -78,14 +78,16 @@ var t2 = fsql.Insert(items).ExecuteAffrows();
FreeSql 适配了每一种数据类型参数化,和不参数化的使用。批量插入建议关闭参数化功能,使用 .NonoParameter() 进行执行。
## 3、ExecuteSqlBulkCopy、ExecutePgCopy
## 3、ExecuteSqlBulkCopy、ExecutePgCopy、ExecuteMySqlBulkCopy
v1.0.0 版本增加了 Bulk Copy 操作,以扩展方法的形式实现,目前只能在 FreeSql.Provider.SqlServer/FreeSql.Provider.PostgreSQL 上可用,针对 SqlServer/PostgreSQL 数据库。
v1.0.0 版本增加了 Bulk Copy 操作,以扩展方法的形式实现,目前只能在 FreeSql.Provider.SqlServer/FreeSql.Provider.PostgreSQL/FreeSql.Provider.MySqlConnector 上可用,针对 SqlServer/PostgreSQL/MySql 数据库。
### 批量插入测试结果(52个字段)
| | 18W | 1W | 5K | 2K | 1K | 500 | 100 | 50 |
| -- | -- | -- | -- | -- | -- | -- | -- | -- |
| MySql 5.5 ExecuteAffrows | 38,481 | 2,234 | 1,136 | 284 | 239 | 167 | 66 | 30 |
| MySql 5.5 ExecuteMySqlBulkCopy | 28,405 | 1,142 | 657 | 451 | 435 | 592 | 47 | 22 |
| SqlServer Express ExecuteAffrows | 402,355 | 24,847 | 11,465 | 4,971 | 2,437 | 915 | 138 | 88 |
| SqlServer Express ExecuteSqlBulkCopy | 21,065 | 578 | 326 | 139 | 105 | 79 | 60 | 48 |
| PostgreSQL 10 ExecuteAffrows | 46,756 | 3,294 | 2,269 | 1,019 | 374 | 209 | 51 | 37 |
@@ -97,6 +99,8 @@ v1.0.0 版本增加了 Bulk Copy 操作,以扩展方法的形式实现,目
| | 18W | 1W | 5K | 2K | 1K | 500 | 100 | 50 |
| -- | -- | -- | -- | -- | -- | -- | -- | -- |
| MySql 5.5 ExecuteAffrows | 11,171 | 866 | 366 | 80 | 83 | 50 | 24 | 34 |
| MySql 5.5 ExecuteMySqlBulkCopy | 6,504 | 399 | 257 | 116 | 87 | 100 | 16 | 16 |
| SqlServer Express ExecuteAffrows | 47,204 | 2,275 | 1,108 | 488 | 279 | 123 | 35 | 16 |
| SqlServer Express ExecuteSqlBulkCopy | 4,248 | 127 | 71 | 30 | 48 | 14 | 11 | 10 |
| PostgreSQL 10 ExecuteAffrows | 9,786 | 568 | 336 | 157 | 102 | 34 | 9 | 6 |