开发者团队近日发布了一款名为Mason的开源工具,旨在提供轻量级的PostgreSQL只读副本替代方案 1。该项目核心采用DuckDB列式计算引擎构建,专门用于支持即席查询,并兼容PostgreSQL语法 1。在针对常见数据可视化工具的支持方面,Mason已实现与Metabase、Grafana、Superset以及DBeaver等平台的对接 1。
为了确定最优的技术路线,团队对比了pg_clickhouse、cedarDB和原生DuckDB在数千条真实查询场景下的表现 1。测试数据集包含来自159个真实PostgreSQL数据库的5,410条手写慢查询 1。数据显示,pg_clickhouse的结果匹配率仅为59.4%,且拒绝率达到39.9%;cedarDB虽然达到了88.1%的匹配率,但其属于闭源软件;原生DuckDB的匹配率为84.1% 1。最终构建出的Mason在这些测试查询中实现了高达96%的结果匹配率 1。
The developers behind Mason have released an open-source tool designed to serve as a lightweight alternative to PostgreSQL read-replicas, leveraging the columnar compute engine of DuckDB 1. The project aims to provide a fast solution for ad-hoc queries while maintaining compatibility with PostgreSQL syntax 1. To determine the optimal underlying technology, the team evaluated pg_clickhouse, cedarDB, and native DuckDB across thousands of real-world queries 1.
Mason was ultimately constructed using DuckDB due to its superior SQL compatibility profile compared to the alternatives tested 1. The benchmark involved 5,410 handwritten slow queries drawn from 159 actual PostgreSQL databases 1. Among the contenders, pg_clickhouse achieved a result match rate of only 59.4% with a rejection rate of 39.9%, while cedarDB reached an 88.1% match rate but is closed-source software 1. Native DuckDB recorded an 84.1% match rate in the same tests 1. By optimizing these components, the final Mason implementation achieved a 96% result match rate against PostgreSQL 1. Additionally, the tool supports integration with common data visualization platforms such as Metabase, Grafana, Superset, and DBeaver 1.
评论
还没有评论,欢迎留下第一条。