Large number of SQLite inserts using PHP

前端 未结 4 1336
无人共我
无人共我 2021-01-13 01:54

I have about 14000 rows of comma separated values that I am trying to insert into a sqlite table using PHP PDO, like so:



        
4条回答
  •  灰色年华
    2021-01-13 02:26

    Start a transaction before the loop and commit it after the loop
    the way your code is working now, it starts a transaction on every insert

提交回复
热议问题