Speed up insert mdb

前端 未结 5 1336
抹茶落季
抹茶落季 2020-12-19 18:06

Is there a way to speed up inserts to a mdb?

 using (StreamReader sr = new StreamReader(_localDir + \"\\\\\" + _filename))
  while ((line = sr.ReadLine()) !=         


        
5条回答
  •  甜味超标
    2020-12-19 19:12

    You'd probably realize some performance benefits by moving the loop inside of the using blocks. Create 1 connection/command and execute it N times instead of creating N connections/commands.

提交回复
热议问题