diff --git a/README.md b/README.md index 62162c173..93128b5a4 100644 --- a/README.md +++ b/README.md @@ -192,3 +192,26 @@ Split query .SplitTable(DateTime.Now.Date.AddYears(-1), DateTime.Now) .ToPageList(1,2);  ``` + +### Feature9: Big data insert or update +```cs +//Insert A million only takes a few seconds +db.Fastest().BulkCopy(GetList());//性能 比现有任何Bulkcopy都要快30% + + +//uupdate A million only takes a few seconds +db.Fastest().BulkUpdate(GetList());//A million only takes a few seconds完 +db.Fastest().BulkUpdate(GetList(),new string[]{"id"},new string[]{"name","time"})//无主键用法 + +//if exists update, else insert + var x= db.Storageable(data).ToStorage(); + x.BulkCopy(); + x.BulkUpdate(); + +//set table name +db.Fastest().AS("tableName").BulkCopy(GetList()) + +//set page +db.Fastest().PageSize(300000).BulkCopy(insertObjs); + +```