# TileDB

**TileDB** 是一个开源、可嵌入的存储引擎，用 C++ 编写，采用 [MIT 许可证](https://www.edgepedia.org/zh/mit-license)，在本地文件系统、分布式文件系统以及 AWS S3、Google Cloud Storage、Azure Blob Storage 等云对象存储上，以稠密或稀疏多维数组的形式存储和查询数据。<sup>[1](https://github.com/TileDB-Inc/tiledb)</sup> 它始于 2014 年底麻省理工学院（MIT）和英特尔实验室（Intel Labs）的一个研究项目，在 VLDB 2017 的一篇论文中得到阐述，并于 2017 年 5 月由创始人斯塔夫罗斯·帕帕佐普洛斯（Stavros Papadopoulos）拆分出来，成立 TileDB 公司。<sup>[2](https://tiledb.com/blog/tiledb-a-refresher-on-what-and-why)</sup> 2026 年 9 月，公司更名为 Tile.ai，而开源引擎继续以 TileDB 之名存在。<sup>[3](https://www.prnewswire.com/news-releases/tiledb-rebrands-as-tileai-names-new-ceo-and-secures-strategic-investment-302879616.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 是什么 | 用于稠密和稀疏数组的可嵌入 C++ 库（“TileDB Embedded”），MIT 许可证，提供 C、C++、Python、R、Java、Go 和 C# 的 API<sup>[1](https://github.com/TileDB-Inc/tiledb)</sup> |
| 起源 | 2014 年底起在 MIT 和英特尔实验室的研究项目；VLDB 2017 论文；公司于 2017 年 5 月由斯塔夫罗斯·帕帕佐普洛斯创立<sup>[2](https://tiledb.com/blog/tiledb-a-refresher-on-what-and-why)</sup> |
| 写入模型 | 类 LSM 树方案中的带时间戳不可变片段；写入通过提交文件实现原子性，片段只有在写入完成后才对读取可见<sup>[4](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/storage/fragments/index.html)</sup> |
| 并发 | 无锁的多读多写模型；片段名将 UUID 与 Unix 纪元以来的毫秒数结合，因此并发写入者无需同步<sup>[5](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/compute/concurrency/index.html)</sup> |
| 维护 | 合并将多个片段合并为较少的片段；清理删除已合并的片段，并在执行时锁定数组<sup>[4](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/storage/fragments/index.html)</sup><sup> • </sup><sup>[5](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/compute/concurrency/index.html)</sup> |
| 报告性能（VLDB 2017） | 稠密读取与 HDF5 相当，但随机写入快几个数量级；在大多数设置下比 SciDB 快几个数量级；稠密数组比 Vertica 快 2 至 40 倍<sup>[6](https://www.vldb.org/pvldb/vol10/p349-papadopoulos.pdf)</sup> |
| 公司 | TileDB 公司，马萨诸塞州剑桥市；2023 年 10 月 10 日宣布由 AlleyCorp 领投的 3400 万美元 B 轮融资；2026 年 9 月更名为 Tile.ai<sup>[7](https://www.tiledb.com/blog/tiledb-closes-series-b-to-advance-the-vision-of-the-modern-database)</sup><sup> • </sup><sup>[3](https://www.prnewswire.com/news-releases/tiledb-rebrands-as-tileai-names-new-ceo-and-secures-strategic-investment-302879616.html)</sup> |

## 数组数据模型

TileDB 将所有数据表示为数组，数组由两个部分组成：维，用于确定多维空间的方向；属性，用于指定该空间中每个单元格存储的值。<sup>[8](https://tiledb.com/blog/tiledb-101-arrays)</sup> 单元格是由一组唯一的维坐标定义的数组元素，一个逻辑单元格可以容纳多个可能不同类型的值，包括整数、浮点数和字符串。<sup>[9](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/array-data-model/)</sup>

**稠密与稀疏。** 在稠密数组中，每个维都有一个整数域，所有维共享一种数据类型，所有单元格都必须存储一个值。稀疏数组以三种方式放宽了这些规则：单元格可以为空；各维的域可以采用不同的数据类型，包括浮点数和字符串；域实际上可以是无限的。稀疏数组还可以配置为接受重复项，在这种情况下，被多次写入的单元格保留所有副本，并在读取时返回它们。<sup>[9](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/array-data-model/)</sup><sup> • </sup><sup>[4](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/storage/fragments/index.html)</sup> 数组还可以携带称为数组元数据的任意键值对。<sup>[9](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/array-data-model/)</sup>

公司的创立论点是，多维数组可以作为一种通用数据模型，这样表格、图像、基因组、点云、时间序列和机器学习特征集都可以由一个引擎管理，而不是每种数据类型都使用一个单独的专用系统。<sup>[2](https://tiledb.com/blog/tiledb-a-refresher-on-what-and-why)</sup>

## 片段与写入路径

**片段**是对 TileDB 数组的一次带时间戳的写入。每个片段是数组文件夹内 `__fragments` 下的一个带时间戳的子文件夹，其中包含每个已写入属性的单独文件（稀疏数组还包括坐标），外加一个片段元数据文件，使片段自包含以实现高效读取。<sup>[4](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/storage/fragments/index.html)</sup> 当用户在某个时间戳读取数组时，TileDB 返回包含该时间之前写入的所有单元格的逻辑视图，较新的单元格会覆盖较旧的单元格。<sup>[4](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/storage/fragments/index.html)</sup>

TileDB 写入的所有文件都是不可变的，VLDB 2017 论文指出这服务于三个目的：在云对象存储上高效运行（云对象存储中的对象不可变）；无需锁定或同步的并行写入；以及具有时间旅行能力的数据版本控制。<sup>[10](https://forum.tiledb.com/t/write-confirmation-question/305)</sup> 这赋予了 TileDB 一种类 LSM 树的写入方式，其中每批更新无论包含多少小的随机写入，都作为新片段顺序追加，而不是就地修改。<sup>[4](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/storage/fragments/index.html)</sup><sup> • </sup><sup>[11](https://people.csail.mit.edu/stavrosp/papers/vldb2017/VLDB17_TileDB.pdf)</sup> 将随机写入转化为顺序追加是一种经典的存储技术，但将其应用于数组并非易事，因为多个片段可能覆盖相同的逻辑区域；TileDB 的读取算法找到每个元素的最新版本，并跳过被较新片段完全覆盖的片段部分的分块读取。<sup>[11](https://people.csail.mit.edu/stavrosp/papers/vldb2017/VLDB17_TileDB.pdf)</sup>

**原子性与可见性。** 写入片段是原子且一致的，通过提交文件强制执行：TileDB 仅在相应写入保证已完成时才在读取操作中考虑一个片段，且片段只有在其 `.ok` 提交文件出现时才可见。<sup>[4](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/storage/fragments/index.html)</sup><sup> • </sup><sup>[5](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/compute/concurrency/index.html)</sup>

**合并与清理。** 许多小的写入会产生许多片段，这会降低读取性能，因为片段元数据必须从大量文件中加载。合并将多个片段压缩成较少的片段，可以在读写的同时在后台运行；在合并完成之前，活动读取无法看到合并后的片段。<sup>[4](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/storage/fragments/index.html)</sup><sup> • </sup><sup>[5](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/compute/concurrency/index.html)</sup> 随后，清理删除已合并的片段。清理不会损坏数组，但在没有文件锁定的云对象存储上，它可能删除时间旅行读取器仍然需要的片段，因此 TileDB 在清理期间锁定数组，多线程时使用互斥锁，多进程时在后端支持的情况下使用文件锁定。<sup>[5](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/compute/concurrency/index.html)</sup>

## 并发

TileDB 使用无锁的多读多写模型。每个执行写入的线程或进程创建一个或多个单独的片段，没有共享的内部状态，跨进程也没有同步；片段名包含 UUID 和毫秒时间戳，即使在存储后端层面，名称冲突也几乎不可能发生。数组元数据写入同样是无锁的，每次写入创建一个唯一命名的文件。<sup>[5](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/compute/concurrency/index.html)</sup>

在读取方面，多进程读取完全独立。在多线程程序中，仅当查询访问分块缓存时通过互斥锁进行锁定。TileDB 在打开数组时将数组模式和片段元数据加载到内存中一次，并使用引用计数系统在数组对象之间共享它们；文档建议打开数组一次并在线程之间共享该对象，以避免重复反序列化。<sup>[5](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/compute/concurrency/index.html)</sup> 有一个操作不在此模型之内：创建数组，即存储其模式，既不是线程安全的也不是进程安全的，文档建议在并发读写开始之前只由一个创建者创建。<sup>[5](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/compute/concurrency/index.html)</sup>

一份独立的数组系统调查将这种更新优化、基于片段的设计描述为 TileDB 的标志性特征，它支持对一系列数组版本进行高效的时间旅行查询，以及在其他系统中无法透明支持的高度并发读写访问。<sup>[12](https://faculty.ucmerced.edu/frusu/Papers/Report/2022-09-fntdb-arrays.pdf)</sup>

## 性能比较

VLDB 2017 的评估由时任英特尔实验室和 MIT 数据库研究员的斯塔夫罗斯·帕帕佐普洛斯及其同事进行，将 TileDB 的存储管理器与 HDF5、SciDB 和 Vertica 进行了比较。对于稠密数组，TileDB 的读取性能与 HDF5 相当，但在随机元素写入方面快几个数量级，因为 HDF5 执行就地更新，会导致昂贵的随机磁盘访问。在大多数设置下，对于稠密数组和稀疏数组，TileDB 的读写速度比 SciDB 快几个数量级，稠密数组比 Vertica 列存储的改编版本快 2 至 40 倍，稀疏数组至少同样快。<sup>[6](https://www.vldb.org/pvldb/vol10/p349-papadopoulos.pdf)</sup><sup> • </sup><sup>[11](https://people.csail.mit.edu/stavrosp/papers/vldb2017/VLDB17_TileDB.pdf)</sup> 该论文还指出了其所针对替代方案的局限性：并行 HDF5 不允许对压缩数据进行并发写入，不支持可变长度的元素值，并将操作原子性留给用户；而 SciDB 依赖规则维分块，即使只需要一小部分也需要读取整个块。<sup>[6](https://www.vldb.org/pvldb/vol10/p349-papadopoulos.pdf)</sup>

## 应用与生态

TileDB 被用于数据自然映射到数组的各个领域。[布罗德研究所](https://www.edgepedia.org/zh/broad-institute)（Broad Institute）早期采用它来存储数 TB 的基因组数据，这些数据被建模为一个巨大的稀疏二维数组。<sup>[11](https://people.csail.mit.edu/stavrosp/papers/vldb2017/VLDB17_TileDB.pdf)</sup> 基于该引擎构建的特定应用库包括：TileDB-VCF，将群体基因组学变异数据建模为三维稀疏数组；TileDB-SOMA 用于单细胞数据；TileDB-Vector-Search 用于向量相似性搜索；TileDB-BioImaging 用于生物医学图像。<sup>[1](https://github.com/TileDB-Inc/tiledb)</sup><sup> • </sup><sup>[13](https://resources.tiledb.com/hubfs/Genomics-solution-brief-WEB-1.pdf?hsLang=en)</sup> 在地球观测领域，TileDB 将来自 SAR、Landsat、GeoTIFF 和 NetCDF 的数据结构化为时间序列立方体，用于灾害监测和洪泛区分析等用途。<sup>[14](https://tiledb.com/industries/earth-observation/)</sup>

该引擎与数据科学和数据库工具集成，包括 Spark、Dask、MariaDB 和 GDAL，并提供 SQL 连接器：一个与 Python DB API 2.0 规范对齐的 Python DBI 连接器，以及一个用于对 TileDB Cloud 发出 SQL 的 JDBC 类型 4 连接器。<sup>[1](https://github.com/TileDB-Inc/tiledb)</sup><sup> • </sup><sup>[15](https://documentation.cloud.tiledb.com/academy/structure/tables/foundation/key-concepts/connectors/)</sup> 几何存储使用熟知二进制（Well Known Binary）编码，并对几何边界使用 R 树索引以实现高效的空间剪枝。<sup>[16](https://tiledb.com/blog/why-tiledb-for-geometries)</sup>

## 公司历史

斯塔夫罗斯·帕帕佐普洛斯于 2014 年底在 MIT 和英特尔实验室启动了 TileDB，作为一个研究项目，探究通用数据模型和存储引擎能否用共同的、可扩展的代码库管理任何数据类型；这项工作促成了 VLDB 2017 论文以及 2017 年 5 月在[马萨诸塞州剑桥](https://www.edgepedia.org/zh/cambridge-massachusetts)市成立 TileDB 公司。<sup>[2](https://tiledb.com/blog/tiledb-a-refresher-on-what-and-why)</sup><sup> • </sup><sup>[17](https://www.cbinsights.com/company/tiledb)</sup> 该公司于 2023 年 10 月 10 日宣布完成了由 AlleyCorp 领投的 3400 万美元 B 轮融资，[Two Bear Capital](https://www.edgepedia.org/zh/two-bear-capital)、Nexus Venture Partners、英特尔资本（Intel Capital）、洛克希德·马丁风险投资（Lockheed Martin Ventures）、安进风险投资（Amgen Ventures）等参与；[CB Insights](https://www.edgepedia.org/zh/cb-insights) 列出的总融资额为 5407 万美元。<sup>[7](https://www.tiledb.com/blog/tiledb-closes-series-b-to-advance-the-vision-of-the-modern-database)</sup><sup> • </sup><sup>[17](https://www.cbinsights.com/company/tiledb)</sup>

2026 年 9 月，公司更名为 **Tile.ai**，推出了“企业 AI 数据基座”（Enterprise AI Data Substrate），定位为一个受治理的层，使 AI 代理能够在企业数据原有的存储位置使用这些数据。乔治·利亚多（George Llado）成为 CEO，他是一位生命科学技术高管，曾在默克（Merck）和亚力兄制药（Alexion Pharmaceuticals）担任 CIO，自 2024 年起担任 TileDB 董事会成员；而创始人斯塔夫罗斯·帕帕佐普洛斯在担任 CEO 九年后转任首席产品官。该轮融资包括由 Two Bear Capital 领投的战略投资，安进风险投资参与，开源引擎继续以 TileDB 之名存在。<sup>[3](https://www.prnewswire.com/news-releases/tiledb-rebrands-as-tileai-names-new-ceo-and-secures-strategic-investment-302879616.html)</sup><sup> • </sup><sup>[18](https://www.tile.ai/blog/from-tiledb-to-tile-ai)</sup>

## References

1. [TileDB-Inc/TileDB: The Universal Storage Engine, GitHub](https://github.com/TileDB-Inc/tiledb)
2. [TileDB: A Refresher on What and Why, TileDB Blog](https://tiledb.com/blog/tiledb-a-refresher-on-what-and-why)
3. [TileDB Rebrands as Tile.ai, Names New CEO and Secures Strategic Investment, PR Newswire (September 16, 2026)](https://www.prnewswire.com/news-releases/tiledb-rebrands-as-tileai-names-new-ceo-and-secures-strategic-investment-302879616.html)
4. [Fragments, TileDB Academy](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/storage/fragments/index.html)
5. [Concurrency, TileDB Academy](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/key-concepts/compute/concurrency/index.html)
6. [S. Papadopoulos et al., The TileDB Array Data Storage Manager, PVLDB 10(4), 2017](https://www.vldb.org/pvldb/vol10/p349-papadopoulos.pdf)
7. [TileDB closes $34M Series B, TileDB Blog (October 2023)](https://www.tiledb.com/blog/tiledb-closes-series-b-to-advance-the-vision-of-the-modern-database)
8. [TileDB 101: Arrays, TileDB Blog](https://tiledb.com/blog/tiledb-101-arrays)
9. [Array Data Model, TileDB Academy](https://documentation.cloud.tiledb.com/academy/structure/arrays/foundation/array-data-model/)
10. [Write confirmation question, TileDB Forum (2021)](https://forum.tiledb.com/t/write-confirmation-question/305)
11. [S. Papadopoulos et al., TileDB VLDB 2017 paper (alternate hosting)](https://people.csail.mit.edu/stavrosp/papers/vldb2017/VLDB17_TileDB.pdf)
12. [F. Rusu, Arrays in Database Systems survey (2022)](https://faculty.ucmerced.edu/frusu/Papers/Report/2022-09-fntdb-arrays.pdf)
13. [TileDB Genomics Solution Brief](https://resources.tiledb.com/hubfs/Genomics-solution-brief-WEB-1.pdf?hsLang=en)
14. [TileDB for Earth Observation](https://tiledb.com/industries/earth-observation/)
15. [SQL Connectors, TileDB Academy](https://documentation.cloud.tiledb.com/academy/structure/tables/foundation/key-concepts/connectors/)
16. [Why TileDB for Geometries, TileDB Blog](https://tiledb.com/blog/why-tiledb-for-geometries)
17. [TileDB company profile, CB Insights](https://www.cbinsights.com/company/tiledb)
18. [From TileDB to Tile.ai, Tile.ai Blog (September 16, 2026)](https://www.tile.ai/blog/from-tiledb-to-tile-ai)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Named software products and platforms › Cloud, virtualization, and containers › Distributed storage and file systems

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/tiledb

English original: https://www.edgepedia.org/tiledb
