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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Vertical Sharding Sucks

20 点作者 samokhvalov大约 1 个月前

7 条评论

georgewfraser大约 1 个月前
I am generally a huge vertical sharding skeptic but there are special cases where it is beneficial. If you have a simple query pattern on one table that represents a big fraction of your entire workload you can put it into its own instance and it becomes much easier to monitor. It’s easy to see why vertical sharding is sometimes the right answer by inverting the decision: should we put two unrelated large applications on the same instance? Obviously not, there is no benefit and ops becomes more difficult.
stu2010大约 1 个月前
I&#x27;ve not evaluated it or ever worked with it myself, but CitusDB has been working on PostgreSQL horizontal scaling for quite some time now, right?<p>Does anyone have positive or negative experiences with Citus?
评论 #43680951 未加载
sgarland大约 1 个月前
If you truly reach the limit of vertical scaling with Postgres, 9&#x2F;10 I guarantee you have some hideously unoptimized schema and queries. The remaining 1&#x2F;10, I hope, has actual DB experts on staff that know what they’re doing.
threeseed大约 1 个月前
Written in 2025 and still acting databases like Cassandra are trendy. It&#x27;s 16 years old.<p>Stop making excuses for PostgreSQL lacking a built-in, supported horizontal scalability solution.
评论 #43676816 未加载
kardos大约 1 个月前
Surely there must be a way to do the joins in software, without doing it by hand, eg a SQL-like library? Pandas or equivalent?
评论 #43678534 未加载
simonw大约 1 个月前
&quot;Tables (apps) are never really split up. Even in the perfect world, two apps developed by the same company will need to talk to each other&quot;<p>I don&#x27;t understand why this sentence appears to treat &quot;tables&quot; and &quot;apps&quot; as the same concept. Is this a use of the term &quot;app&quot; that I&#x27;m not familiar with?<p>---<p>TLDR of this post is that it&#x27;s promoting a new open source (AGPL) horizontal sharding solution for PostgreSQL called PgDog: <a href="https:&#x2F;&#x2F;github.com&#x2F;pgdogdev&#x2F;pgdog">https:&#x2F;&#x2F;github.com&#x2F;pgdogdev&#x2F;pgdog</a><p>Looks like the trick this one uses is to parse your SQL queries inside a custom router&#x2F;load-balancer and redirect them based on introspecting the WHERE clause of a SELECT&#x2F;UPDATE&#x2F;DELETE or the VALUES clause of an INSERT to identify sharding keys: <a href="https:&#x2F;&#x2F;docs.pgdog.dev&#x2F;features&#x2F;sharding&#x2F;query-routing&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.pgdog.dev&#x2F;features&#x2F;sharding&#x2F;query-routing&#x2F;</a>
评论 #43676810 未加载
junto大约 1 个月前
What’s wrong with the Postgres Citus extension for this use case?