“query end” step very long at random times

后端 未结 1 1261
没有蜡笔的小新
没有蜡笔的小新 2020-12-10 15:50

I\'m benchmarking a web application, and I have a problem that occurs on about 1% of my queries, mostly UPDATES (but also sometimes INSERT). I did a profiling on those reque

相关标签:
1条回答
  • 2020-12-10 16:21

    Issue solved by adding

    innodb_flush_log_at_trx_commit = 0
    

    in the /etc/my.cnf

    There is an interlocking problem when multiple threads want to write the file at the same time, this way the log will be flushed every second.

    0 讨论(0)
提交回复
热议问题