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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Why we spent the last month eliminating PostgreSQL subtransactions

178 点作者 giacaglia超过 3 年前

5 条评论

gshulegaard超过 3 年前
Every once in awhile I find an article that is so well written I feel like it walks me through a complex technical situation like a layman while also expanding my understanding of a tool I use everyday in a meaningful way. This is definitely one of those and I just want thank the author(s) for taking the time to write this up. It was interesting and enlightening.
lixtra超过 3 年前
&gt; There was a long-running transaction, usually relating to PostgreSQL&#x27;s autovacuuming, during the time. The stalls stopped quickly after the transaction ended.<p>What is about the other end? Why does vacuum need to be a long running transaction and cannot be cut into shorter transactions ?
评论 #28743069 未加载
xeromal超过 3 年前
That was a fun read. Thanks for sharing!
seg_lol超过 3 年前
My take away is that they were testing the limits of PostgreSQL capabilities, and then reverted the change in a mad dash.<p>That this would have been an awesome opportunity for gitlab to show how OSS they are and fund a PostgreSQL developer to allow gitlab to design these boundary pushing designs.
评论 #28735756 未加载
juliangamble超过 3 年前
Definitely a fun article.<p>This was the key takeaway for me.<p><pre><code> SubtransControlLock indicates that the query is waiting for PostgreSQL to load subtransaction data from disk into shared memory. </code></pre> I felt the article fell down for two reasons: (1) It didn&#x27;t really articulate the need for transactions in the first place (database integrity). Nor did it discuss the implications on integrity with this change.<p>(2) It didn&#x27;t articulate the possibilities of other architectures (pushing to a read cache other than PostgresSQL like Cassandra).<p>I got the feeling they were really pushing PostgresSQL to its limits in their cluster with their load - and it was time to consider another design.
评论 #28733994 未加载
评论 #28733996 未加载
评论 #28734560 未加载
评论 #28734301 未加载