Improve large data import performance into SQLite with C#

后端 未结 4 1676
礼貌的吻别
礼貌的吻别 2021-02-07 05:12

I am using C# to import a CSV with 6-8million rows.

My table looks like this:

CREATE TABLE [Data] ([ID] VARCHAR(100)  NULL,[Raw] VARCHAR(200)  NULL)
CREA         


        
4条回答
  •  梦毁少年i
    2021-02-07 05:57

    I did a similar import, but I let my c# code just write the data to a csv first and then ran the sqlite import utility. I was able to import over 300million records in a matter of maybe 10 minutes this way.

    Not sure if this can be done directly from c# or not though.

提交回复
热议问题