I have a buffing problem with an InnoDB table that I cannot figure out:
What is going on here? I suspect the answer is in the way InnoDB stores indexes, but after a lot of reading, I can't figure it out. What's weirdest of all is that the same table, with all the indexes added, with MyISAM engine always works at 5000 records/sec.
I don't know why. But the MySQL website provides a performance tuning tip for inserting into InnoDB with secondary keys (which implies to me that this is just the way it is and you have to deal with it): "If you have UNIQUE constraints on secondary keys, you can speed up table imports by temporarily turning off the uniqueness checks during the import session..."
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.