What is the best way to achieve speedy inserts of large amounts of data in MySQL?

后端 未结 6 1527
无人共我
无人共我 2021-01-05 05:01

I have written a program in C to parse large XML files and then create files with insert statements. Some other process would ingest the files into a MySQL database. This

6条回答
  •  清酒与你
    2021-01-05 05:40

    • Use the mysqlimport tool or the LOAD DATA INFILE command.
    • Temporarily disable indices that you don't need for data integrity

提交回复
热议问题