MySQL Insert performance degrades on a large table

前端 未结 6 834
粉色の甜心
粉色の甜心 2020-12-30 02:48

I\'m working with a huge table which has 250+ million rows. The schema is simple.

CREATE TABLE MyTable (
        id BIGINT PRIMARY KEY AUTO_INCREMENT,
              


        
6条回答
  •  别那么骄傲
    2020-12-30 03:04

    Increase from innodb_log_file_size = 50M to innodb_log_file_size = 500M

    And the innodb_flush_log_at_trx_commit should be 0 if you bear 1 sec data loss.

提交回复
热议问题