跳到正文
原文
Hacker News Show HN· tagspace·· 9 天前精选AI 评分67

Mason 开源 Postgres 只读副本:基于列存,聚合查询比主库快 81 倍

Show HN: Mason – a lightweight Postgres read-replica, built on columnar storage

AI 导读

Mason 是一个 Apache-2.0 开源项目,用 DuckDB 列存做 Postgres 只读副本,同一 SQL 查 1000 万行聚合从主库的 15.7 秒降到 0.193 秒,快 81 倍。

推荐理由

原文给出了与 Postgres 主库的冷启动对比数据,并说明列存副本在聚合查询快、主键点查慢的边界。

社媒成稿工作台 · 一键复制

飞书同步推送 · 含数据/日期/出处/启发
核心数据发布日期信源出处独立开发启发
1463
Mason 开源 Postgres 只读副本:基于列存,聚合查询比主库快 81 倍

📊 核心数据与事实(2026-11-25):
Mason 是一个 Apache-2.0 开源项目,用 DuckDB 列存做 Postgres 只读副本,同一 SQL 查 1000 万行聚合从主库的 15.7 秒降到 0.193 秒,快 81 倍。
• 原文实测切片:One query over 10 million rows: the Postgres primary took 15.7 seconds, Mason as its read replica took 0.193 seconds, and both returned the same answer to the same SQL: 81 times faster.
• 原文实测切片:SELECT response_code, count ( · ) FROM requests GROUP BY response_code Querying 10M rows Postgres primary 15.7 s Mason read replica 0.193 s Same SQL, same answer, 81× faster response_code count 200 7,412,604 304 1,502,931 404 846,118 500 238,34…
• 原文实测切片:Query Postgres (s) Mason (s) Mason is Count by status 10M rows, 10 clients 21.721 0.2595 84× faster Count by status, 100M rows, 1 client 216.068 0.4624 467× faster SELECT status, count ( · ) FROM orders GROUP BY status ORDER BY status Revenue…

💡 对独立开发者的启发:
1/ 原文给出了与 Postgres 主库的冷启动对比数据,并说明列存副本在聚合查询快、主键点查慢的边界。
2/ 面对新模型或开源组件先看三件事:许可证是否商用安全、API/推理边际成本降了多少、能不能直接嵌进现有变现工作流。
3/ 别去卷通用开发者轮子,把底层新能力包装成面向具体行业人群(电商、创作者、中小商家)傻瓜式交付结果的产品。

📅 日期:2026-11-25(北京时间)
📰 信息源出处:Hacker News Show HN · tagspace(masondata.ai)
🔗 原文:https://masondata.ai/
📡 归档:https://billionare.me/items/tniy47xqu7z9bwnfg8f395tr5
去 X 发推
每天 08:00 邮件 / 08:30 飞书准点推送一手高信噪比情报与拆解免费订阅简报

来源:Hacker News Show HN · masondata.ai