shuxinqin / Chloe

A lightweight and high-performance Object/Relational Mapping(ORM) library for .NET --C#
https://github.com/shuxinqin/Chloe/wiki
MIT License
1.52k stars 457 forks source link

BulkInsertAsync InsertRand 我怎么选择 根据集合的数量 #393

Closed nodyang closed 1 month ago

nodyang commented 1 month ago

BulkInsertAsync InsertRand 我怎么选择 根据集合的数量

shuxinqin commented 1 month ago

BulkInsert 是利用 SqlBulkCopy 批量插入数据。插入速度快,性能好,可插入大批量数据 InsertRange生成 insert into TableName(...) values(...),(...)...语句插入,效率一般,只能说比循环插入好一点点吧

nodyang commented 1 month ago

ok