Is InnoDB sorting really THAT slow?

前端 未结 6 1015
挽巷
挽巷 2020-12-30 17:10

I had all my tables in myISAM but the table level locking was starting to kill me when I had long running update jobs. I converted my primary tables over to InnoDB and now m

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-30 17:50

    Try adding a key for fields: metaward_achiever.alias_id, metaward_achiever.award_id, and metaward_achiever.modified this will help alot. And do not use keys on varchar fields it will increase time for inserts and updates. Also it seems you have 77M records in achiever table, you may want to care about innodb optimizations. There are lots of good tutors around how to set memory limits for it.

提交回复
热议问题