What is the recommended batch size for SqlBulkCopy?

后端 未结 5 645
自闭症患者
自闭症患者 2020-11-30 23:34

What is the recommended batch size for SqlBulkCopy? I\'m looking for a general formula I can use as a starting point for performance tuning.

5条回答
  •  攒了一身酷
    2020-12-01 00:03

    This all depends on your implementation.

    What kind of speed can you expect on your network? Are you using it in Forms or ASP.Net? Do you need to alert the user of progress? What is the size of the total job?

    In my experience running bulk copy without a batch size specified will cause timeout issues. I Like to start with something like 1000 records and do some adjustments from there.

提交回复
热议问题