ParadeDB 如何解决 Postgres 的 COUNT 查询性能问题
📊 核心数据与事实(2026-10-28):
ParadeDB 通过三项优化大幅提升 Postgres COUNT 查询性能:按 ctid 分区 segment 后,可见性检查的页面访问从 1,382 次降至 30 次;反转 DocId 映射后,更新 1,000 行时缓冲区访问从超 7,500 次降至不到 400 次,减少 95%。在带过滤和排序的搜索查询中,ParadeDB 比对比方案快最多 66 倍。
• 原文实测切片:When profiling this query visibility checking accounted for over 80% of our page accesses.
• 原文实测切片:Data structure Share of page accesses Visibility map + stored CTIDs 1382 (81%) Everything else (postings, metadata, etc.) 325 (19%) While looking at the query we realised that we could use a (to be announced) feature that we’ve been working on:…
• 原文实测切片:After: document boundaries indexed by page Heap page: 10 11 12 13 14 15 end Starting DocId: 0 2 - - - 5 7 Page 11 --> doc IDs [2, 5) With this new format, we can check the visibility map up front, then look up document ranges only for pages…
💡 对独立开发者的启发:
1/ 供给端造工具的门槛已被 AI 和开源抹平,独立开发者真正的护城河是「找准垂直业务场景 + 做好分发」。
2/ 面对新模型或开源组件先看三件事:许可证是否商用安全、API/推理边际成本降了多少、能不能直接嵌进现有变现工作流。
3/ 别去卷通用开发者轮子,把底层新能力包装成面向具体行业人群(电商、创作者、中小商家)傻瓜式交付结果的产品。
📅 日期:2026-10-28(北京时间)
📰 信息源出处:Hacker News 首页(paradedb.com)
🔗 原文:https://www.paradedb.com/blog/opening-a-closed-tin-part-2
📡 归档:https://billionare.me/items/djuem4jilcqsslqzoifssdtwc
社媒成稿工作台 · 一键复制
飞书同步推送 · 含数据/日期/出处/启发