What is an efficient way of inserting thousands of records into an SQLite table using Django?

后端 未结 9 768
暖寄归人
暖寄归人 2020-11-30 17:41

I have to insert 8000+ records into a SQLite database using Django\'s ORM. This operation needs to be run as a cronjob about once per minute.
At the moment I\'m using a

9条回答
  •  时光取名叫无心
    2020-11-30 18:29

    Have a look at this. It's meant for use out-of-the-box with MySQL only, but there are pointers on what to do for other databases.

提交回复
热议问题