# GreptimeDB v0.7 功能预热，龙年喜迎多位贡献者｜ Greptime 双周精选

Source: https://greptime.cn/blogs/2024-02-27-biweekly

## 内容概述

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

过去的两周，我们愉快度过了一个春节小长假，又重新聚焦到 v0.7 的发版当中，预计近期发布。更新如下：

- **全面提升 Memtable 的写入、查询性能，双周内共合并了 Memtable 相关的 18 个 PR**

- **Greptime Flow 流计算引擎持续开发中**

- **持续扩充系统表（Information Schema），增强 GreptimeDB 的可观测性**

- **对倒排索引和 Metric Engine 进行代码问题修复和性能优化**

## 社区贡献者名单

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

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

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

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

- @[Hudson C. Dalprá](https://github.com/dalprahcd) ([db#3280](https://github.com/GreptimeTeam/greptimedb/pull/3280))

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

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

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

<img src="/zh/blogs/2024-02-27-biweekly/image1.png" alt="Contributor of GreptimeDB" style="width: 80%; margin: 0 auto"/>

🌟 特别感谢本次的特别贡献者 @yurivict，目前 Greptime支持在 FreeBSD 上安装：
https://cgit.freebsd.org/ports/tree/databases/greptimedb。

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

## PR 亮点

### [db#3278](https://github.com/GreptimeTeam/greptimedb/pull/3278) 在 information schema 中新增 `partitions` 和 `greptime_region_peers` 表

- 用户可以通过 `partitions` 查询 Table Partitions 的分布情况；

- 用户可以通过 `greptime_region_peers` 查询 Region 的分布情况。

### [db#3271](https://github.com/GreptimeTeam/greptimedb/pull/3271) [db#3293](https://github.com/GreptimeTeam/greptimedb/pull/3293) 优化了建表时 TableID 的分配逻辑

新版本 Procedure 支持返回值的操作，把建表时 TableID 的分配工作交给 Procedure 处理，不在建表之前预先分配 TableID，有效地减少了并发建表情况下因为预先分配导致的 TableID 浪费。

### [db#3310](https://github.com/GreptimeTeam/greptimedb/pull/3310) 优化分布式追踪链路显示

修正了 `tracing id` 在查询链路上不正确的传递，修正了分布式追踪下的查询调用链路。

### [db#3325](https://github.com/GreptimeTeam/greptimedb/pull/3325) 增加 `migrate_region` 和 `procedure_state` 函数

用户可以在 SQL 中使用 `migrate_region` 在 `Datanode` 之间迁移 Region，`procedure_state` 查询某一个 procedure 的状态。

### [db#3364](https://github.com/GreptimeTeam/greptimedb/pull/3364) 优化补列逻辑

优化了 Mito2 Engine 在 Put 和 Delete 请求上的 NULL 值填充逻辑，特定情况下 Put 请求获得了近 3 倍的性能提升。

### [db#3360](https://github.com/GreptimeTeam/greptimedb/pull/3360) GreptimeDB 现在支持在查询中使用 `isnull` 函数

## Good First Issue

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

重构 information_schema 的实现，减少 information_schema 中的重复代码。

关键词：information_schema

难度：中等

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

使用 Rust 的过程宏简化 administration functions 的编写。

关键词：administration functions

难度：中等

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

为 information_schema 在 Mysql 协议中添加 Show 语句的支持。

关键词：information_schema

难度：中等

## 关于 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/
