TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Fixing bug 109595 makes MySQL almost 4X faster on the Insert Benchmark

75 pointsby romacover 1 year ago

7 comments

repelsteeltjeover 1 year ago
[Knee jerk reaction] Be careful now. Be very careful.<p>&gt; Godbolt’s Law — if any single optimisation makes a routine run two or more times faster, then you’ve broken the code.<p>&lt;<a href="https:&#x2F;&#x2F;xania.org&#x2F;200504&#x2F;godbolt&#x27;s-law" rel="nofollow noreferrer">https:&#x2F;&#x2F;xania.org&#x2F;200504&#x2F;godbolt&#x27;s-law</a>&gt;
评论 #38290230 未加载
评论 #38291873 未加载
cturover 1 year ago
Mark is one of the world&#x27;s top experts on practical MySQL performance at scale, having spent a huge amount of time optimizing MySQL at Google and Facebook. There&#x27;s a question in this thread about whether this has real world impact... yes, if Mark noticed it, yes, yes it does. This will materially improve many common workloads for InnoDB.
bsaulover 1 year ago
4x perf on inserts... Those kinds of post make me both scared and depressed by the state of our industry. I feel like we&#x27;re all hitting rocks to make fire in a cave.
评论 #38288984 未加载
评论 #38288872 未加载
Izkataover 1 year ago
&gt; I assume this problem was limited to InnoDB because I did not see problems with MyRocks.<p>This would certainly explain why InnoDB is insanely slow at loading mysqldumps compared to MyISAM - we hit a wall in some systems and were unable to switch because of it. There&#x27;s tons of questions online about how to speed this up, people were generally aware of the problem but assumed it was because InnoDB is more reliable with the data (like with foreign keys) or something about how it structures the data on disk that couldn&#x27;t be changed.
JCharanteover 1 year ago
Is someone more experienced able to shed light on how these benchmarks compare to real world use? Writes tend to be pretty resource intensive, is 4X faster going to show up as 2-4x faster writes on production environments?
koromakover 1 year ago
Are those bug ID&#x27;s sequential? 100 thousand bugs fixed is quite a number
londons_exploreover 1 year ago
Inserts ought to be able to run at the storage mediums write speed.<p>Ie. If I insert 1 million records of 1 kilobyte each. And my SSD can do 1GB&#x2F;s of writes, then I should be able to do it in 1 second.<p>How close are we to that?<p>Transactions shouldn&#x27;t slow this down (it&#x27;s possible to write all the data to new areas of diak, and then the final &#x27;commit&#x27; is a metadata update to say those new areas are active).<p>Indexes might slow it down depending on the index design. But it&#x27;s possible to design an index where updates are coalesced, and therefore the changed parts of the index are only written once as a single bulk write. Assuming the inde. Size is only 10% of the data size, that&#x27;s a 10% slowdown.
评论 #38287675 未加载
评论 #38289730 未加载
评论 #38289018 未加载
评论 #38297704 未加载
评论 #38289879 未加载