From 9b90be74bdf99fec97fffbc2334b06be39e6a7ba Mon Sep 17 00:00:00 2001 From: Dennis Zhuang Date: Wed, 4 Sep 2024 11:58:59 +0800 Subject: [PATCH 1/4] feat: adds admin reference and updated some links --- docs/faq-and-others/faq.md | 8 ++--- docs/reference/sql/admin.md | 29 +++++++++++++++++++ docs/reference/sql/functions/overview.md | 21 ++------------ docs/reference/sql/overview.md | 1 + .../concepts/features-that-you-concern.md | 10 +++++++ docs/user-guide/operations/admin.md | 4 +-- docs/user-guide/operations/compaction.md | 6 ++-- .../user-guide/operations/region-migration.md | 6 ++-- .../current/faq-and-others/faq.md | 9 ++---- .../current/reference/sql/admin.md | 28 ++++++++++++++++++ .../reference/sql/functions/overview.md | 21 ++------------ .../current/reference/sql/overview.md | 1 + .../concepts/features-that-you-concern.md | 9 ++++++ .../current/user-guide/operations/admin.md | 4 +-- .../user-guide/operations/compaction.md | 6 ++-- .../user-guide/operations/region-migration.md | 6 ++-- sidebars.ts | 1 + 17 files changed, 104 insertions(+), 66 deletions(-) create mode 100644 docs/reference/sql/admin.md create mode 100644 i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/admin.md diff --git a/docs/faq-and-others/faq.md b/docs/faq-and-others/faq.md index 9a1883c16..a4654d6d4 100644 --- a/docs/faq-and-others/faq.md +++ b/docs/faq-and-others/faq.md @@ -13,10 +13,6 @@ Common use cases for time-series database include but are not limited to the fol Please refer to [features that you concern](/user-guide/concepts/features-that-you-concern.md). -### How is GreptimeDB's performance compared to other solutions? - -GreptimeDB has released v0.8, with functionalities set to improve progressively. For detailed TSBS test results, refer to the link [here](https://github.com/GreptimeTeam/greptimedb/blob/main/docs/benchmarks/tsbs/v0.8.0.md). - ### How is the performance of GreptimeDB when used for non-time-series DB tables? GreptimeDB supports SQL and can deal with non-time-series data, especially efficient for high concurrent and throughput data writing. However, we develop GreptimeDB for a specific domain (time-series scenarios), and it doesn't support transactions and can't delete data efficiently. @@ -142,10 +138,10 @@ Of course, please use the `compact_table` function: ```sql -- Schedule a compaction for table test -- -select compact_table("test"); +ADMIN compact_table("test"); ``` -There are many [administration functions](/reference/sql/functions/overview.md#admin-functions) for database management. +There are many [administration functions](/reference/sql/admin.md#admin-functions) for database management. ### Can GreptimeDB be used to store logs? diff --git a/docs/reference/sql/admin.md b/docs/reference/sql/admin.md new file mode 100644 index 000000000..ab6c4f95c --- /dev/null +++ b/docs/reference/sql/admin.md @@ -0,0 +1,29 @@ +# ADMIN + +`ADMIN` is used to run administration functions. + +```sql +ADMIN function(arg1, arg2, ...) +``` + + +## Admin Functions + +GreptimeDB provides some administration functions to manage the database and data: + +* `flush_table(table_name)` to flush a table's memtables into SST file by table name. +* `flush_region(region_id)` to flush a region's memtables into SST file by region id. Find the region id through [PARTITIONS](./information-schema/partitions.md) table. +* `compact_table(table_name, [type], [options])` to schedule a compaction task for a table by table name, read [compaction](/user-guide/operations/compaction.md#strict-window-compaction-strategy-swcs-and-manual-compaction) for more details. +* `compact_region(region_id)` to schedule a compaction task for a region by region id. +* `migrate_region(region_id, from_peer, to_peer, [timeout])` to migrate regions between datanodes, please read the [Region Migration](/user-guide/operations/region-migration.md). +* `procedure_state(procedure_id)` to query a procedure state by its id. +* `flush_flow(flow_name)` to flush a flow's output into the sink table. + +For example: +```sql +-- Flush the table test -- +admin flush_table("test"); + +-- Schedule a compaction for table test -- +admin compact_table("test"); +``` diff --git a/docs/reference/sql/functions/overview.md b/docs/reference/sql/functions/overview.md index debd2fa9d..46986e251 100644 --- a/docs/reference/sql/functions/overview.md +++ b/docs/reference/sql/functions/overview.md @@ -39,7 +39,7 @@ Where the `datatype` can be any valid Arrow data type in this [list](https://arr DataFusion [String Function](./df-functions#string-functions).GreptimeDB provides: * `matches(expression, pattern)` for full text search. - +For details, read the [Query Logs](user-guide/logs/query-logs.md). ### Math Functions @@ -247,21 +247,4 @@ select database(); ### Admin Functions -GreptimeDB provides some administration functions to manage the database and data: - -* `flush_table(table_name)` to flush a table's memtables into SST file by table name. -* `flush_region(region_id)` to flush a region's memtables into SST file by region id. Find the region id through [PARTITIONS](../information-schema/partitions.md) table. -* `compact_table(table_name)` to schedule a compaction task for a table by table name. -* `compact_region(region_id)` to schedule a compaction task for a region by region id. -* `migrate_region(region_id, from_peer, to_peer, [timeout])` to migrate regions between datanodes, please read the [Region Migration](/user-guide/operations/region-migration.md). -* `procedure_state(procedure_id)` to query a procedure state by its id. -* `flush_flow(flow_name)` to flush a flow's output into the sink table. - -For example: -```sql --- Flush the table test -- -admin flush_table("test"); - --- Schedule a compaction for table test -- -admin compact_table("test"); -``` +GreptimeDB provides `ADMIN` statement to run the administration functions, please refer to [ADMIN](./admin.md) reference. \ No newline at end of file diff --git a/docs/reference/sql/overview.md b/docs/reference/sql/overview.md index 8044634cd..35f3bcef3 100644 --- a/docs/reference/sql/overview.md +++ b/docs/reference/sql/overview.md @@ -24,5 +24,6 @@ * [ALTER](./alter.md) * [EXPLAIN](./explain.md) * [Functions](./functions/overview.md) +* [ADMIN](./admin.md) * [ANSI Compatibility](./compatibility.md) * [INFORMATION_SCHEMA](./information-schema/overview.md) diff --git a/docs/user-guide/concepts/features-that-you-concern.md b/docs/user-guide/concepts/features-that-you-concern.md index 40256cdc2..567f415e2 100644 --- a/docs/user-guide/concepts/features-that-you-concern.md +++ b/docs/user-guide/concepts/features-that-you-concern.md @@ -46,6 +46,16 @@ The data can be stored in cost-effective cloud storage services such as AWS S3 o GreptimeDB also offers a fully-managed cloud service [GreptimeCloud](https://greptime.com/product/cloud) to help you manage data in the cloud. +### How is GreptimeDB's performance compared to other solutions? + +Please read the performance benchmark reports: + +* [GreptimeDB vs. InfluxDB](https://greptime.com/blogs/2024-08-07-performance-benchmark) +* [GreptimeDB vs. Grafana Mimir](https://greptime.com/blogs/2024-08-02-datanode-benchmark) +* [GreptimeDB vs. ClickHouse vs. ElasticSearch](https://greptime.com/blogs/2024-08-22-log-benchmark) +* [GreptimeDB vs. SQLite](https://greptime.com/blogs/2024-08-30-sqlite) + + ## Does GreptimeDB have disaster recovery solutions? Yes. Please refer to [disaster recovery](/user-guide/operations/disaster-recovery/overview.md). \ No newline at end of file diff --git a/docs/user-guide/operations/admin.md b/docs/user-guide/operations/admin.md index 4a9285dab..575041f8c 100644 --- a/docs/user-guide/operations/admin.md +++ b/docs/user-guide/operations/admin.md @@ -37,11 +37,11 @@ The `INFORMATION_SCHEMA` database provides access to system metadata, such as th * [The Storage Location](/user-guide/concepts/storage-location.md). * Cluster Failover for GreptimeDB by [Setting Remote WAL](./remote-wal/quick-start.md). -* [Flush and Compaction for Table & Region](/reference/sql/functions/overview.md#admin-functions). +* [Flush and Compaction for Table & Region](/reference/sql/admin.md#admin-functions). * Partition the table by regions, read the [Table Sharding](/contributor-guide/frontend/table-sharding.md) reference. * [Migrate the Region](./region-migration.md) for Load Balance. * [Expire Data by Setting TTL](/user-guide/concepts/features-that-you-concern.md#can-i-set-ttl-or-retention-policy-for-different-tables-or-measurements). ## Best Practices -TODO \ No newline at end of file +* [Performance Tuning Tips](/user-guide/operations/performance-tuning-tips.md) \ No newline at end of file diff --git a/docs/user-guide/operations/compaction.md b/docs/user-guide/operations/compaction.md index a2a9c1809..9c9ebfc3b 100644 --- a/docs/user-guide/operations/compaction.md +++ b/docs/user-guide/operations/compaction.md @@ -106,7 +106,7 @@ WITH ( Unlike TWCS, which assigns one window per SST file based on their maximum timestamps, SWCS assigns SST files to **all** overlapping windows. Consequently, a single SST file may be included in multiple compaction outputs, as its name suggests. Due to its high read amplification during compaction, SWCS is not the default compaction strategy. However, it is useful when you need to manually trigger compaction to reorganize the layout of SST files—especially if an individual SST file spans a large time range that significantly slows down queries. GreptimeDB offers a simple SQL function for triggering compaction: ```sql -SELECT COMPACT_TABLE( +ADMIN COMPACT_TABLE( , , [] @@ -117,14 +117,14 @@ The `` parameter can be either `twcs` or `swcs` (case insensitive For the `swcs` strategy, the `` specify the window size (in seconds) for splitting SST files. For example: ```sql -SELECT COMPACT_TABLE( +ADMIN COMPACT_TABLE( "monitor", "swcs", "3600" ); +--------------------------------------------------------------------+ -| compact_table(Utf8("monitor"),Utf8("swcs"),Utf8("3600")) | +| ADMIN compact_table(Utf8("monitor"),Utf8("swcs"),Utf8("3600")) | +--------------------------------------------------------------------+ | 0 | +--------------------------------------------------------------------+ diff --git a/docs/user-guide/operations/region-migration.md b/docs/user-guide/operations/region-migration.md index 5c065210e..480f99295 100644 --- a/docs/user-guide/operations/region-migration.md +++ b/docs/user-guide/operations/region-migration.md @@ -45,13 +45,13 @@ Remember, if you deploy the cluster via the GreptimeDB operator, the `peer_id` o Finally, you can do a Region migration request via the following SQL: ```sql -select migrate_region(4398046511104, 1, 2, 60); +ADMIN migrate_region(4398046511104, 1, 2, 60); ``` The parameters of `migrate_region`: ```sql -select migrate_region(region_id, from_peer_id, to_peer_id, replay_timeout); +ADMIN migrate_region(region_id, from_peer_id, to_peer_id, replay_timeout); ``` | Option | Description | Required | | @@ -66,7 +66,7 @@ select migrate_region(region_id, from_peer_id, to_peer_id, replay_timeout); The `migrate_region` function returns the procedure id that executes the migration, queries the procedure state by it: ```sql -select procedure_state('538b7476-9f79-4e50-aa9c-b1de90710839') +ADMIN procedure_state('538b7476-9f79-4e50-aa9c-b1de90710839') ``` If it's done, outputs the state in JSON: diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/faq-and-others/faq.md b/i18n/zh/docusaurus-plugin-content-docs/current/faq-and-others/faq.md index 16911403d..8318d3af7 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/faq-and-others/faq.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/faq-and-others/faq.md @@ -1,4 +1,4 @@ -# 常见问题 +# Frequently Asked Questions ### What would be the use cases for a time-series database? @@ -13,9 +13,6 @@ Common use cases for time-series database include but are not limited to the fol Please refer to [features that you concern](/user-guide/concepts/features-that-you-concern.md). -### How is GreptimeDB's performance compared to other solutions? - -GreptimeDB has released v0.8, with functionalities set to improve progressively. For detailed TSBS test results, refer to the link [here](https://github.com/GreptimeTeam/greptimedb/blob/main/docs/benchmarks/tsbs/v0.8.0.md). ### How is the performance of GreptimeDB when used for non-time-series DB tables? @@ -142,10 +139,10 @@ Of course, please use the `compact_table` function: ```sql -- Schedule a compaction for table test -- -select compact_table("test"); +ADMIN compact_table("test"); ``` -There are many [administration functions](/reference/sql/functions/overview.md#admin-functions) for database management. +There are many [administration functions](/reference/sql/admin.md#admin-functions) for database management. ### Can GreptimeDB be used to store logs? diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/admin.md b/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/admin.md new file mode 100644 index 000000000..e3da7a0ca --- /dev/null +++ b/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/admin.md @@ -0,0 +1,28 @@ +# ADMIN + +`ADMIN` 语句用于运行管理函数: + +```sql +ADMIN function(arg1, arg2, ...) +``` + +## 管理函数 + +GreptimeDB 提供了一些管理函数来管理数据库和数据: + +* `flush_table(table_name)` 根据表名将表的 Memtable 刷新到 SST 文件中。 +* `flush_region(region_id)` 根据 Region ID 将 Region 的 Memtable 刷新到 SST 文件中。通过 [PARTITIONS](./information-schema/partitions.md) 表查找 Region ID。 +* `compact_table(table_name, [type], [options])` 为表启动一个 compaction 任务,详细信息请阅读 [compaction](/user-guide/operations/compaction.md#严格窗口压缩策略swcs和手动压缩)。 +* `compact_region(region_id)` 为 Region 启动一个 compaction 任务。 +* `migrate_region(region_id, from_peer, to_peer, [timeout])` 在 Datanode 之间迁移 Region,请阅读 [Region Migration](/user-guide/operations/region-migration.md)。 +* `procedure_state(procedure_id)` 根据 ID 查询 Procedure 状态。 +* `flush_flow(flow_name)` 将 Flow 的输出刷新到目标接收表。 + +例如: +```sql +-- 刷新表 test -- +admin flush_table("test"); + +-- 为表 test 启动 compaction 任务 -- +admin compact_table("test"); +``` diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/functions/overview.md b/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/functions/overview.md index 8154bdd69..35560e020 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/functions/overview.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/functions/overview.md @@ -38,7 +38,7 @@ arrow_cast(expression, datatype) DataFusion [字符串函数](./df-functions#string-functions)。GreptimeDB 提供: * `matches(expression, pattern)` 用于全文检索。 -TODO:链接到全文检索用户指南。 +阅读[查询日志](user-guide/logs/query-logs.md)文档获取更多详情。 ### 数学函数 @@ -240,21 +240,4 @@ select database(); ### 管理函数 -GreptimeDB 提供一些管理数据库和数据的函数: - -* `flush_table(table_name)` 通过表名将表的内存表刷写到 SST 文件。 -* `flush_region(region_id)` 通过 Region Id 将 Region 的内存表刷写到 SST 文件。可以通过 [PARTITIONS](../information-schema/partitions.md) 表查找一张表的所有 Region Id。 -* `compact_table(table_name)` 通过表名为表发起compaction 任务。 -* `compact_region(region_id)` 通过 Region Id 为 Region 发起 compaction 任务。 -* `migrate_region(region_id, from_peer, to_peer, [timeout])` 在 Datanode 之间迁移 Region,请阅读 [ Region迁移](/user-guide/operations/region-migration)。 -* `procedure_state(procedure_id)` 通过 Procedure Id 查询 Procedure 状态。 -* `flush_flow(flow_name)` 通过 Flow 名称将 Flow 的输出刷写到结果表。 - -例如: -```sql --- 刷新表 test -- -admin flush_table("test"); - --- 为表 test 安排压缩任务 -- -admin compact_table("test".md); -``` +GreptimeDB 提供了 `ADMIN` 语句来执行管理函数,请阅读 [ADMIN](./admin.md) 文档。 \ No newline at end of file diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/overview.md b/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/overview.md index 0a24280a3..4a67622ab 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/overview.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/overview.md @@ -24,5 +24,6 @@ * [ALTER](./alter.md) * [EXPLAIN](./explain.md) * [Functions](./functions/overview.md) +* [ADMIN](./admin.md) * [ANSI Compatibility](./compatibility.md) * [INFORMATION_SCHEMA](./information-schema/overview.md) diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/concepts/features-that-you-concern.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/concepts/features-that-you-concern.md index 858c09f7e..e9ff36522 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/concepts/features-that-you-concern.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/concepts/features-that-you-concern.md @@ -45,6 +45,15 @@ GreptimeDB 通过以下方式解决这个问题: GreptimeDB 还提供一个完全托管的云服务 [GreptimeCloud](https://greptime.cn/product/cloud) 来帮助您管理云中的数据。 +## GreptimeDB 对比其他存储或时序数据库的性能如何? + +请阅读以下性能报告: + +* [GreptimeDB vs. InfluxDB](https://greptime.cn/blogs/2024-08-08-report) +* [GreptimeDB vs. Grafana Mimir](https://greptime.cn/blogs/2024-08-01-grafana) +* [GreptimeDB vs. ClickHouse vs. ElasticSearch](https://greptime.cn/blogs/2024-08-21-report) +* [GreptimeDB vs. SQLite](https://greptime.cn/blogs/2024-08-30-sqlite) + ## GreptimeDB 有灾难恢复解决方案吗? 有的,请参阅[灾难恢复文档](/user-guide/operations/disaster-recovery/overview.md)。 diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/operations/admin.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/operations/admin.md index b285888bd..dc761a7c7 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/operations/admin.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/operations/admin.md @@ -37,11 +37,11 @@ ORDER BY datanode_id ASC * [存储位置说明](/user-guide/concepts/storage-location.md)。 * 通过 [设置Remote WAL](./remote-wal/quick-start.md) 实现 GreptimeDB 的集群容灾。 -* [Table 和 Region 的 Flush 和 Compaction](/reference/sql/functions/overview.md#admin-functions)。 +* [Table 和 Region 的 Flush 和 Compaction](/reference/sql/functions/admin.md##管理函数)。 * 通过 Region 对表进行分区,请阅读 [表的分片](/contributor-guide/frontend/table-sharding.md) 参考。 * [迁移 Region](./region-migration.md) 以实现负载均衡。 * [通过设置 TTL 过期数据](/user-guide/concepts/features-that-you-concern.md#can-i-set-ttl-or-retention-policy-for-different-tables-or-measurements)。 ## 最佳实践 -TODO \ No newline at end of file +* [性能调优技巧](/user-guide/operations/performance-tuning-tips.md) \ No newline at end of file diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/operations/compaction.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/operations/compaction.md index a75638516..abf051719 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/operations/compaction.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/operations/compaction.md @@ -105,7 +105,7 @@ WITH ( 与 TWCS 根据 SST 文件的最大时间戳为每个窗口分配一个 SST 文件不同的是,严格窗口策略(SWCS)将 SST 文件分配给**所有与此文件的时间范围重叠**的窗口,正如其名称所示。因此,一个 SST 文件可能会包含在多个压缩输出中。由于其在压缩期间的高读取放大率,SWCS 并不是默认的压缩策略。然而,当用户需要手动触发压缩以重新组织 SST 文件布局时,它是有用的,特别是当单个 SST 文件跨越较大的时间范围而显著减慢查询速度时。GreptimeDB 提供了一个简单的 SQL 函数来触发手动压缩: ```sql -SELECT COMPACT_TABLE( +ADMIN COMPACT_TABLE( , , [] @@ -116,14 +116,14 @@ SELECT COMPACT_TABLE( 对于 `swcs` 策略, `` 指定用于拆分 SST 文件的窗口大小(以秒为单位)。例如: ```sql -SELECT COMPACT_TABLE( +ADMIN COMPACT_TABLE( "monitor", "swcs", "3600" ); +--------------------------------------------------------------------+ -| compact_table(Utf8("monitor"),Utf8("swcs"),Utf8("3600")) | +| ADMIN compact_table(Utf8("monitor"),Utf8("swcs"),Utf8("3600")) | +--------------------------------------------------------------------+ | 0 | +--------------------------------------------------------------------+ diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/operations/region-migration.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/operations/region-migration.md index 63805df89..a6c64e2bc 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/operations/region-migration.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/operations/region-migration.md @@ -44,13 +44,13 @@ on a.greptime_partition_id = b.region_id where a.table_name='migration_target' o 最后,你可以通过以下 SQL 请求发起 Region 迁移请求: ```sql -select migrate_region(4398046511104, 1, 2, 60); +ADMIN migrate_region(4398046511104, 1, 2, 60); ``` `migrate_region` 参数说明: ```sql -select migrate_region(region_id, from_peer_id, to_peer_id, replay_timeout); +ADMIN migrate_region(region_id, from_peer_id, to_peer_id, replay_timeout); ``` | Option | Description | Required | | @@ -65,7 +65,7 @@ select migrate_region(region_id, from_peer_id, to_peer_id, replay_timeout); `migrate_region` 函数将返回执行迁移的 Procedure Id,可以通过它查询过程状态: ```sql -select procedure_state('538b7476-9f79-4e50-aa9c-b1de90710839') +ADMIN procedure_state('538b7476-9f79-4e50-aa9c-b1de90710839') ``` 如果顺利完成,将输出 JSON 格式的状态: diff --git a/sidebars.ts b/sidebars.ts index 9217d2ae4..562811a4c 100644 --- a/sidebars.ts +++ b/sidebars.ts @@ -297,6 +297,7 @@ const sidebars: SidebarsConfig = { 'reference/sql/alter', 'reference/sql/explain', { type: 'category', label: 'Functions', items: ['reference/sql/functions/overview', 'reference/sql/functions/df-functions'] }, + 'reference/sql/admin', 'reference/sql/compatibility', { type: 'category', From 3066d4cd9d87f8351122e3cfab802831aa2f8548 Mon Sep 17 00:00:00 2001 From: Dennis Zhuang Date: Wed, 4 Sep 2024 12:02:27 +0800 Subject: [PATCH 2/4] fix: revert zh faq title --- .../current/faq-and-others/faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/faq-and-others/faq.md b/i18n/zh/docusaurus-plugin-content-docs/current/faq-and-others/faq.md index 8318d3af7..db1871612 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/faq-and-others/faq.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/faq-and-others/faq.md @@ -1,4 +1,4 @@ -# Frequently Asked Questions +# 常见问题 ### What would be the use cases for a time-series database? From a47364dff72702955d8d8df3a09398a164318207 Mon Sep 17 00:00:00 2001 From: Yiran Date: Wed, 4 Sep 2024 14:39:09 +0800 Subject: [PATCH 3/4] Apply suggestions from code review --- docs/reference/sql/functions/overview.md | 2 +- .../current/reference/sql/functions/overview.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/sql/functions/overview.md b/docs/reference/sql/functions/overview.md index 46986e251..86fe1d943 100644 --- a/docs/reference/sql/functions/overview.md +++ b/docs/reference/sql/functions/overview.md @@ -39,7 +39,7 @@ Where the `datatype` can be any valid Arrow data type in this [list](https://arr DataFusion [String Function](./df-functions#string-functions).GreptimeDB provides: * `matches(expression, pattern)` for full text search. -For details, read the [Query Logs](user-guide/logs/query-logs.md). +For details, read the [Query Logs](/user-guide/logs/query-logs.md). ### Math Functions diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/functions/overview.md b/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/functions/overview.md index 35560e020..a8cbbeb34 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/functions/overview.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/functions/overview.md @@ -38,7 +38,7 @@ arrow_cast(expression, datatype) DataFusion [字符串函数](./df-functions#string-functions)。GreptimeDB 提供: * `matches(expression, pattern)` 用于全文检索。 -阅读[查询日志](user-guide/logs/query-logs.md)文档获取更多详情。 +阅读[查询日志](/user-guide/logs/query-logs.md)文档获取更多详情。 ### 数学函数 From 826a67f3949f8168b58b75b8e426bbe03ff8373f Mon Sep 17 00:00:00 2001 From: Dennis Zhuang Date: Wed, 4 Sep 2024 14:34:04 +0800 Subject: [PATCH 4/4] fix: links --- docs/reference/sql/functions/overview.md | 2 +- .../current/reference/sql/functions/overview.md | 2 +- .../current/user-guide/operations/admin.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/reference/sql/functions/overview.md b/docs/reference/sql/functions/overview.md index 86fe1d943..a303a521e 100644 --- a/docs/reference/sql/functions/overview.md +++ b/docs/reference/sql/functions/overview.md @@ -247,4 +247,4 @@ select database(); ### Admin Functions -GreptimeDB provides `ADMIN` statement to run the administration functions, please refer to [ADMIN](./admin.md) reference. \ No newline at end of file +GreptimeDB provides `ADMIN` statement to run the administration functions, please refer to [ADMIN](.(/reference/sql/admin.md) reference. \ No newline at end of file diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/functions/overview.md b/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/functions/overview.md index a8cbbeb34..602bd6224 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/functions/overview.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/functions/overview.md @@ -240,4 +240,4 @@ select database(); ### 管理函数 -GreptimeDB 提供了 `ADMIN` 语句来执行管理函数,请阅读 [ADMIN](./admin.md) 文档。 \ No newline at end of file +GreptimeDB 提供了 `ADMIN` 语句来执行管理函数,请阅读 [ADMIN](/reference/sql/admin.md) 文档。 \ No newline at end of file diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/operations/admin.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/operations/admin.md index dc761a7c7..5764edc34 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/operations/admin.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/operations/admin.md @@ -37,7 +37,7 @@ ORDER BY datanode_id ASC * [存储位置说明](/user-guide/concepts/storage-location.md)。 * 通过 [设置Remote WAL](./remote-wal/quick-start.md) 实现 GreptimeDB 的集群容灾。 -* [Table 和 Region 的 Flush 和 Compaction](/reference/sql/functions/admin.md##管理函数)。 +* [Table 和 Region 的 Flush 和 Compaction](/reference/sql/admin.md##管理函数)。 * 通过 Region 对表进行分区,请阅读 [表的分片](/contributor-guide/frontend/table-sharding.md) 参考。 * [迁移 Region](./region-migration.md) 以实现负载均衡。 * [通过设置 TTL 过期数据](/user-guide/concepts/features-that-you-concern.md#can-i-set-ttl-or-retention-policy-for-different-tables-or-measurements)。