Efficiently adding huge amounts of data from CSV files into an SQLite DB in Java [duplicate]
- 阅读更多 关于 Efficiently adding huge amounts of data from CSV files into an SQLite DB in Java [duplicate]
问题 This question already has answers here : Android SQLite database: slow insertion (5 answers) Closed 2 years ago . I'm trying to parse values from a CSV file to a SQLite DB, however the file is quite large (~2,500,000 lines). I ran my program for a a few hours, printing where it was up to, but by my calculation, the file would have taken about 100 hours to parse completely, so I stopped it. I'm going to have to run this program as a background process at least once a week, on a new CSV file