# 新存储引擎 Mito2 不断进阶中｜Greptime 双周精选

Source: https://greptime.cn/blogs/2023-11-29-biweekly

## 内容概述

作为一个成长中的开源项目，GreptimeDB 的进展离不开来自全球的社区贡献者们，感谢各位！

在过去两周中，我们砥砺前行。以下是这段时间的总结：

- 把 storage crate 从其他 crates 的依赖项列表中删除，真正的存储引擎是 `Mito2`；

- GreptimeDB 允许启用分布式 tracing；

- 支持了新的数据类型 `Decimal128`；

- 实现了 Mito 引擎一个 row group 级别的 page 缓存；

- 全新模块 region migration 和 inverted index 加速开发中。

## 社区贡献者名单

在过去的两周里，GreptimeDB 共合并了 58 个 PR，其中有 4 位独立贡献者，累计 7 个 PR 被成功合并，还有很多待合并的 PR。

祝贺以下各位在过去 2 周内成为我们活跃的贡献者：

- @[bigboss2063](https://github.com/bigboss2063) ([db#2775](https://github.com/GreptimeTeam/greptimedb/pull/2775))

- @[lyang24](https://github.com/lyang24) ([db#2765](https://github.com/GreptimeTeam/greptimedb/pull/2765))

- @[taobo](https://github.com/realtaobo)（[db#2748](https://github.com/GreptimeTeam/greptimedb/pull/2748))

- @[tisonkun](https://github.com/tisonkun) ([db#2799](https://github.com/GreptimeTeam/greptimedb/pull/2799) [db#2734](https://github.com/GreptimeTeam/greptimedb/pull/2734) [db#2781](https://github.com/GreptimeTeam/greptimedb/pull/2781) [db#2716](https://github.com/GreptimeTeam/greptimedb/pull/2716))

🎉 热烈欢迎 @[bigboss2063](https://github.com/bigboss2063) @[lyang24](https://github.com/lyang24) @[taobo](https://github.com/realtaobo) 作为新的贡献者加入社区并成功合并了首个 PR，还有更多来自其他独立贡献者的 PR 正在等待合并。

同时衷心感谢我们所有的成员和贡献者！是你们的付出让我们的项目得以成功，也是你们让 GreptimeDB 成为一个更优质的产品。让我们一起努力，建立一个更棒的社区！

## PR 亮点

### [db#2777](https://github.com/GreptimeTeam/greptimedb/pull/2777) 该 PR 将 storage crate 从其他 crates 的依赖项列表中删除。真正的存储引擎是 `Mito2`

### [db#2755](https://github.com/GreptimeTeam/greptimedb/pull/2755) 在 GreptimeDB 中允许启用分布式跟踪。并能够使用 otlp 作为导出协议，可以支持 jaeger、tempo 等分布式跟踪后端

### [db#2788](https://github.com/GreptimeTeam/greptimedb/pull/2788) [db#2724](https://github.com/GreptimeTeam/greptimedb/pull/2724) GreptimeDB 支持的类型新增了 `Decimal128`

### [db#2688](https://github.com/GreptimeTeam/greptimedb/pull/2688) 实现了 Mito 引擎的一个 row group 级别的 page 缓存

它引入了一个新的 PageReader: `CachedPageReader`，用于从缓存中返回 row group 的 page。

首次读取一个 row group 时，我们加载该 row group 的所有 page, 并将其放入缓存。下次读取时，我们可以从缓存中获取 page 并构建一个 `CachedPageReader`。
因为缓存的 page 已被解压缩，所以如果查询命中缓存，我们可以跳过解压缩步骤，从而减少总扫描时间的 20% ~ 30%。

Region migration 紧密开发中, 具体可见:
[db#2700](https://github.com/GreptimeTeam/greptimedb/issues/2700)

Inverted index 紧密开发中, 具体可见:
[db#2705](https://github.com/GreptimeTeam/greptimedb/issues/2705)

## Good First Issue

### [db#2637](https://github.com/GreptimeTeam/greptimedb/issues/2637)  

修复 `redact_sql_secrets` 函数不能正常处理特殊字符的问题。

### [db#2877](https://github.com/GreptimeTeam/greptimedb/issues/2877)

使用 procedure 执行创建数据库的操作。

## 关于 Greptime

[Greptime 格睿科技](https://greptime.cn/)专注于为可观测、物联网及车联网等领域提供实时、高效的数据存储和分析服务，帮助客户挖掘数据的深层价值。目前基于云原生的时序数据库 [GreptimeDB](https://github.com/GreptimeTeam/greptimedb) 已经衍生出多款适合不同用户的解决方案，更多信息或 demo 展示请联系下方小助手（微信号：greptime）。

欢迎对开源感兴趣的朋友们参与贡献和讨论，从带有 good first issue 标签的 issue 开始你的开源之旅吧～期待在开源社群里遇见你！添加小助手微信即可加入“技术交流群”与志同道合的朋友们面对面交流哦~

Star us on GitHub Now: https://github.com/GreptimeTeam/greptimedb

官网：https://greptime.cn/

文档：https://docs.greptime.cn/

Twitter: https://twitter.com/Greptime

Slack: https://greptime.com/slack

LinkedIn: https://www.linkedin.com/company/greptime/
