# Apache Doris

**Apache Doris** 是一款基于 MPP（大规模并行处理）架构构建的高性能实时分析型数据库，其设计目标是在海量数据集上以亚秒级延迟返回查询结果，并在同一套系统中同时支持高并发点查询与高吞吐复杂分析。<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup> 它兼容 MySQL 协议与 ANSI SQL，因此 BI 工具和既有应用无需适配层即可接入。<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup> 该系统最初由百度以 Palo 之名开发，现已成为 Apache 软件基金会的顶级项目。<sup>[2](https://doris.apache.org/docs/3.x/gettingStarted/what-is-apache-doris/?_highlight=ranger)</sup>

| 关键事实 | 详情 |
|---|---|
| 查询延迟 | 海量数据集上低于 1 秒（亚秒级响应）<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup> |
| 并发能力 | 单系统 10,000+ QPS<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup> |
| 数据导入 | 实时数据导入秒级延迟<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup> |
| 存储规模 | PB 级，单集群可达数百台机器<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup> |
| SQL 接口 | 兼容 MySQL 协议的接入层，支持 ANSI SQL 语法<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup> |
| 许可证与治理 | Apache-2.0；2022 年 6 月起成为 Apache 顶级项目<sup>[2](https://doris.apache.org/docs/3.x/gettingStarted/what-is-apache-doris/?_highlight=ranger)</sup> |
| 起源 | 百度内部用于广告报表的“Palo”系统；2017 年开源<sup>[2](https://doris.apache.org/docs/3.x/gettingStarted/what-is-apache-doris/?_highlight=ranger)</sup><sup> • </sup><sup>[4](https://stackscape.org/en/p/apache-doris/)</sup> |

## 历史

Doris 的前身是 Palo，是百度为自家广告报表业务内部构建的 MPP 分析型数据库。该系统于 2017 年 10 月初开源，2018 年 7 月由百度捐赠给 Apache 软件基金会，并在导师指导下于 Apache 孵化器中运作。<sup>[2](https://doris.apache.org/docs/3.x/gettingStarted/what-is-apache-doris/?_highlight=ranger)</sup><sup> • </sup><sup>[9](https://cwiki.apache.org/confluence/spaces/INCUBATOR/pages/109454616/DorisProposal?src=contextnavpagetreemode)</sup> 2022 年 6 月，它从孵化器中毕业，成为顶级项目。<sup>[2](https://doris.apache.org/docs/3.x/gettingStarted/what-is-apache-doris/?_highlight=ranger)</sup> ASF 董事会于 2022 年 6 月以决议形式正式设立 Apache Doris 项目，董事会纪要中记载的成立日期在 2026 年 5 月的报告中为 2022-06-14，在 2026 年 8 月的报告中为 2022-06-15。<sup>[5](https://apache.org/foundation/board/minutes/Doris.html)</sup>

## 系统架构

Doris 提供两种部署模式，由业务需求来选择：一体化存算架构与解耦（共享存储）架构。<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup>

**一体化模式。** 经典部署由两类进程构成。前端节点（FE）接收请求、解析并规划查询，同时管理元数据与节点；后端节点（BE）存储数据并执行查询，数据以多副本形式分片存放于各 BE 节点之上。<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup><sup> • </sup><sup>[2](https://doris.apache.org/docs/3.x/gettingStarted/what-is-apache-doris/?_highlight=ranger)</sup> 生产环境部署会运行多个 FE 节点以实现高可用，FE 共有三种角色：Master、Follower 与 Observer。<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup>

**解耦模式。** 存储与计算相互分离，二者可独立扩缩容：计算层运行多个计算组，每个计算组都可作为独立租户对外服务，而数据则存放在 S3、HDFS 或 OSS 等共享存储上。<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup> 项目方对这一选择的表述很简明：规模可控、运维简单就选一体化架构，需要弹性伸缩就选解耦架构。<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup>

## 查询引擎

查询引擎采用 shared-nothing 的 MPP 执行模型。FE 借助 Nereids 基于代价的优化器，将查询规划为由多个 `PlanFragment` 构成的 DAG，各 BE 并行地在本地数据分片上执行这些计划片段；计划片段之间通过 BRPC 上的 `ExchangeNode` 与 `DataStreamSink` 配对交换数据。每次查询的内存预算（`exec_mem_limit`，默认 2 GB）与 shared-nothing 存储让集群可以横向扩展，因为每新增一台 BE，查询资源池就多一份 CPU、内存与本地数据分片。<sup>[3](https://doris.apache.org/docs/4.x/key-features/mpp/)</sup>

规划器在四种连接策略中做出选择：广播连接（Broadcast Join，把右表复制到每个左表实例）、洗牌连接（Shuffle Join，按连接键对两侧做哈希分区）、分桶洗牌连接（Bucket Shuffle Join，复用左表的分桶布局，只搬运右表）以及同置连接（Colocate Join，当两张表本就位于同一批 BE 上时跳过洗牌）。<sup>[3](https://doris.apache.org/docs/4.x/key-features/mpp/)</sup>

执行是向量化的：所有内存结构均采用列式布局，从而减少虚函数调用、提升缓存命中率并使用 SIMD 指令，在宽表聚合场景中带来 5-10 倍的性能提升。<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup> 自适应查询执行与 Pipeline 执行引擎会依据运行时统计信息动态优化执行计划并利用多核 CPU，同时以线程数上限来应对线程膨胀问题。<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup>

## 存储、数据模型与检索

存储引擎采用列式存储，逐列进行编码与压缩，以获得高压缩比并减少 IO；它针对一万列以上的超宽表做了优化。<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup> 三种数据模型覆盖不同的工作负载：Duplicate 模型用于原始数据留存，Aggregate 模型用于预聚合，Unique 模型用于行级更新。<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup><sup> • </sup><sup>[4](https://stackscape.org/en/p/apache-doris/)</sup> 可用的索引结构包括有序复合键（Sorted Compound Key）、Min/Max、BloomFilter、倒排索引与向量索引，此外还提供强一致的单表物化视图与异步刷新的多表物化视图。<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup>

**混合检索。** 在 2025 年 10 月发布的 4.0 版本中，HNSW 向量索引与 `SEARCH()` 一同引入，后者是基于 BM25 构建的全文检索能力，同时还提供了让 SQL 能够调用大模型的 AI 函数；2026 年 4 月发布的 4.1 版本则带来了带量化的 IVF 向量索引、对 Iceberg V2 与 V3 的读写支持，以及 `MERGE INTO`。<sup>[4](https://stackscape.org/en/p/apache-doris/)</sup> 单条 SQL 语句即可把向量相似度检索、关键词过滤与聚合分析组合起来，VARIANT 类型提供原生的动态 JSON 结构，轻量级 Schema 变更（Light Schema Change）则让字段修改在数秒内完成。<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup>

## 应用场景

Doris 的应用大致覆盖三类场景：实时数据分析（报表、看板、用户行为分析、A/B 测试平台与日志检索）、湖仓分析（统一数仓构建，以及对 Hive、Iceberg、Hudi 等数据湖的联邦查询加速），以及面向 AI 工作负载的混合检索与分析，包括 RAG（检索增强生成）应用、语义检索与面向智能体的分析。<sup>[1](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)</sup><sup> • </sup><sup>[2](https://doris.apache.org/docs/3.x/gettingStarted/what-is-apache-doris/?_highlight=ranger)</sup> MPP 执行适合千万行至数十亿行的分析型扫描与星型模型连接，而 QPS 达数千的单行主键查询，更适合走专用的高并发点查询路径，而非完整的分布式查询规划。<sup>[3](https://doris.apache.org/docs/4.x/key-features/mpp/)</sup>

## 采用情况与社区

据项目方介绍，全球已有 5,000 多家公司在生产环境中使用该系统，包括 TikTok、百度、腾讯与网易，贡献者超过 700 人，来自数百家公司，月活跃贡献者超过 120 人。<sup>[2](https://doris.apache.org/docs/3.x/gettingStarted/what-is-apache-doris/?_highlight=ranger)</sup> 2026 年 8 月的 ASF 董事会报告统计有 105 名代码提交者与 26 名 PMC 成员，并指出贡献者活动集中在亚太地区，欧洲与北美的参与度虽有增长但仍然偏低。<sup>[5](https://apache.org/foundation/board/minutes/Doris.html)</sup> 商业发行版与云服务 VeloDB 由另一家厂商提供。<sup>[4](https://stackscape.org/en/p/apache-doris/)</sup>

## 版本发布与路线图

项目并行维护两条发布线：4.0.x 为稳定线，主要承载缺陷修复；4.1.x 为当前的功能线，其补丁版本也会新增能力；自 4.1.0 于 2026 年 4 月发布以来，两条线基本保持约每月一次的节奏。<sup>[5](https://apache.org/foundation/board/minutes/Doris.html)</sup> 截至 2026 年 10 月中旬，下载页面上推荐用于生产的稳定分支是 4.0.8（2026 年 8 月 14 日发布），最新分支版本是 4.1.4.1（2026 年 9 月 29 日发布）。<sup>[6](https://revisit.tech/blog/real-time-olap-in-2026-revisit-clickhouse-apache-doris-and-starrocks-before-you-build-another-dashboard-warehouse/)</sup> 公开的路线图计划在 2026 年 8 月发布 4.0.x 的最后一个补丁，4.1.x 按月维护，2026 年 9 月的 4.2 版本聚焦多模态湖仓与更强的检索能力，2026 年 11 月的 5.0 版本聚焦实时增量计算。<sup>[7](https://doris.apache.org/community/roadmap/)</sup> 生态子项目包括 Flink、Spark 与 Kafka 连接器、[Kubernetes](https://www.edgepedia.org/zh/kubernetes) operator 以及 Streamloader 工具。<sup>[8](https://tooling-bat.apache.org/doris/index.html)</sup>

## 与其他方案的比较

Doris 与多个引擎存在功能重叠，差异取决于具体工作负载。[StarRocks](https://www.edgepedia.org/zh/starrocks) 于 2020 年从 Doris 分叉而来，在直接查询 Iceberg 与物化视图湖上加速方面表现突出，而 Doris 则强调内置的检索与 AI 函数；[ClickHouse](https://www.edgepedia.org/zh/clickhouse) 在大规模单表扫描与日志分析方面很强，而 Doris 的长处是多表连接与行级更新；Trino 擅长在数据源本地做联邦查询、连接器生态广泛，而 Doris 面向的是对自身存储的低延迟查询；[Elasticsearch](https://www.edgepedia.org/zh/elasticsearch) 在全文检索引擎生态中领先，而 Doris 把 SQL 分析、连接与存储成本效率结合了起来。<sup>[4](https://stackscape.org/en/p/apache-doris/)</sup> Doris 与 StarRocks 都在查询端口上兼容 MySQL 协议，这也是重度依赖 BI 的团队常把二者放在一起评估的一个现实原因。<sup>[6](https://revisit.tech/blog/real-time-olap-in-2026-revisit-clickhouse-apache-doris-and-starrocks-before-you-build-another-dashboard-warehouse/)</sup>

## References

1. [Apache Doris Overview, Apache Doris documentation](https://doris.apache.org/docs/dev/getting-started/what-is-apache-doris/)
2. [Introduction to Apache Doris, Apache Doris 3.x documentation](https://doris.apache.org/docs/3.x/gettingStarted/what-is-apache-doris/?_highlight=ranger)
3. [MPP Architecture, Apache Doris documentation](https://doris.apache.org/docs/4.x/key-features/mpp/)
4. [Apache Doris: MPP real-time analytics DB, Stackscape](https://stackscape.org/en/p/apache-doris/)
5. [Board history: Doris, Apache Software Foundation](https://apache.org/foundation/board/minutes/Doris.html)
6. [Real-time OLAP in 2026: revisit ClickHouse, Apache Doris and StarRocks, Revisit.tech](https://revisit.tech/blog/real-time-olap-in-2026-revisit-clickhouse-apache-doris-and-starrocks-before-you-build-another-dashboard-warehouse/)
7. [Community Development / Roadmap, Apache Doris](https://doris.apache.org/community/roadmap/)
8. [Apache Doris, Apache Release Catalog](https://tooling-bat.apache.org/doris/index.html)
9. [DorisProposal, Apache Incubator wiki](https://cwiki.apache.org/confluence/spaces/INCUBATOR/pages/109454616/DorisProposal?src=contextnavpagetreemode)

---
*Initially written Oct 26, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Databases and data systems › Database engines and systems › In-memory and analytical column-store engines

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/apache-doris

English original: https://www.edgepedia.org/apache-doris
