Inserting 1000000 rows in sqlite3 database

前端 未结 3 1132
有刺的猬
有刺的猬 2020-12-30 17:37

I want to insert 10,00,000 rows into the database, but the it takes too long time time in insertion like.

e.g. Now I am trying it with 2055 rows and it takes 3 minut

3条回答
  •  一向
    一向 (楼主)
    2020-12-30 17:57

    Speeding up sqlite insert operations goes through a similar case and shows how to use transactions to optimize the insertion.

提交回复
热议问题