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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

A Primer on Web Caching

15 点作者 renownedmedia将近 13 年前

1 comment

latch将近 13 年前
Weird stuff in here...<p>Makes it sounds like Redis is "closer to the metal" with a lower-level API than Memcached. Also how can you be "more persistent"...you're either persisten or not, unless you are being cynical and saying Redis' persistence is hit or mess?<p>The idea that caching results from SQL queries to disk won't, in general, provide gains is silly. Aggregates, complex joins, high offsets, queries that don't hit indexes and so on can all benefit _greatly_ from having the final results cached. It isn't the network overhead that you are trying to avoid, it's the data transformation.<p>There are other oddities in there.<p>Out of curiosity, does PHP code really still use interpolation rather than parameters for queries?<p><pre><code> [select...where] company_id = " . $this-&#62;db-&#62;escape($company_id) . "";</code></pre>
评论 #4152347 未加载
评论 #4153400 未加载