TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

MySQL 8.0: Retiring Support for the Query Cache

144 点作者 aleksi将近 8 年前

13 条评论

morgo将近 8 年前
Product Manager for the MySQL Server here (and post author). Happy to answer any questions...
评论 #14447344 未加载
评论 #14446959 未加载
评论 #14446903 未加载
评论 #14448620 未加载
评论 #14448684 未加载
评论 #14448344 未加载
评论 #14447852 未加载
评论 #14450540 未加载
评论 #14450819 未加载
评论 #14446850 未加载
rubiquity将近 8 年前
These days it is much easier to implement a query cache specific to your application's needs in other layers of your infrastructure. These other layers also tend to scale horizontally much more easily than a relational database does. I like it.
评论 #14446717 未加载
h1d将近 8 年前
It&#x27;s good that MySQL gets better because I&#x27;m tied to it since Sequel Pro is the best database browser there is and it only supports MySQL.<p>Datagrip has that Java kind of non-nativeness (weird scrolling and the looks) and it&#x27;s never easy to read&#x2F;write triggers, relations and export data into csv etc.<p>I did find Postico being decent last time I checked but what a limiting factor on the tooling.
评论 #14450602 未加载
评论 #14449636 未加载
评论 #14450380 未加载
评论 #14449563 未加载
tyingq将近 8 年前
&gt;&gt;Use of non-deterministic features will result in the query not being cached (including temporary tables, user variables, RAND(), NOW() and UDFs.)<p>Makes me wonder how many simplistic client side caches check for this. Pretty sure I&#x27;ve seen PHP shopping apps that blindly hash the query.
评论 #14446729 未加载
评论 #14446720 未加载
评论 #14446829 未加载
raarts将近 8 年前
This PostgreSQL diehard had a usecase that required a cluster of 3 masters to stay up if two of them died. Turned out that was really easy with MySQL multi-master and multi-source where each master is a slave to the other two.
lathiat将近 8 年前
Though this is probably a good move, I think it&#x27;s going to catch out a lot of bad web apps based on my experience of trying to disable it at a web hosting company :-)
TekMol将近 8 年前
I always assumed that it makes sense to have the query cache active. It just makes sense logically.<p>On my production server, &quot;SHOW STATUS LIKE &#x27;Qcache%&#x27;&quot; currently gives me:<p><pre><code> Qcache_free_blocks 2184 Qcache_free_memory 7629288 Qcache_hits 328939349 Qcache_inserts 14440714 Qcache_lowmem_prunes 7814306 Qcache_not_cached 290027559 Qcache_queries_in_cache 7497 Qcache_total_blocks 17225 </code></pre> About 20 hits per insert. Sounds good to me.<p>Anybody here who is more &quot;in the know&quot; then me and can tell me what I can conclude from these numbers and&#x2F;or which other stats to look at?
评论 #14447848 未加载
Markxr42将近 8 年前
It is definitely high time, the QC is an abomination, it&#x27;s totally at odds with the idea of MVCC.<p>In my experience, anyone who enabled the QC was deeply mistaken about its behaviour.
评论 #14447672 未加载
z3t4将近 8 年前
when optimizing old school server rendered web apps turning on the query cache always gave the most bang for the buck. hit rates around 90% or more.
jbergstroem将近 8 年前
Out of curiosity: how does people using Wordpress [at somewhat scale] handle layers of cache? Last I used it, relying on the Wordpress cache layer just didn&#x27;t cover enough cases. The MySQL one &quot;saved&quot; me seeing how Wordpress likes to ask the same question. A lot.
评论 #14447324 未加载
评论 #14447128 未加载
tiennou74将近 8 年前
I am trying <a href="http:&#x2F;&#x2F;www.heimdalldata.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.heimdalldata.com&#x2F;</a> as a replacement.
jarnix将近 8 年前
I&#x27;m not sure that it will &quot;only affect a small number of users&quot;.<p>Maybe this should be an option with false as default value, it could help with the transition.
评论 #14447238 未加载
评论 #14447251 未加载
评论 #14447252 未加载
tiennou74将近 8 年前
I&#x27;m working with a company called <a href="http:&#x2F;&#x2F;www.heimdalldata.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.heimdalldata.com&#x2F;</a> they do SQL auto-caching with no code changes. A perfect replacement for Query Cache if you have a read-heavy application. They also offer a nice dashboard that helps identify database inefficiencies. I would try them out to see if you get a performance boost.
评论 #14458322 未加载
评论 #14449508 未加载