How to improve SQLite insert performance in Python 3.6?
问题 Background I would like to insert 1-million records to SQLite using Python. I tried a number of ways to improve it but it is still not so satisfied. The database load file to memory using 0.23 second (search pass below) but SQLite 1.77 second to load and insert to file. Environment Intel Core i7-7700 @ 3.6GHz 16GB RAM Micron 1100 256GB SSD, Windows 10 x64 Python 3.6.5 Minconda sqlite3.version 2.6.0 GenerateData.py I generate the 1 million test input data with the same format as my real data.