Skip to content

Commit efb7eea

Browse files
authored
chore: Synchronous missing code (#972)
1 parent 53316ec commit efb7eea

File tree

22 files changed

+879
-438
lines changed

22 files changed

+879
-438
lines changed

.github/workflows/docs-commit.translate.yaml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,43 @@ name: GPT Translate per Commit
33
on:
44
push:
55
branches:
6-
- main
6+
- main
77
paths-ignore:
8-
- '.github**/*'
9-
- 'docs/cn/**/*'
10-
- 'docs/en/guides/20-cloud/**/*'
11-
- 'docs/en/guides/00-overview/00-editions/02-dc/**/*'
12-
- 'docs/release-notes/**/*'
13-
- 'docs/release-stable/**/*'
14-
- 'api/**/*'
15-
- 'i18n/**/*'
16-
- 'src/**/*'
17-
- 'static/**/*'
18-
- 'types/**/*'
19-
- 'README.md'
8+
- ".github**/*"
9+
- "docs/cn/**/*"
10+
- "docs/en/guides/20-cloud/**/*"
11+
- "docs/en/guides/00-overview/00-editions/02-dc/**/*"
12+
- "docs/release-notes/**/*"
13+
- "docs/release-stable/**/*"
14+
- "api/**/*"
15+
- "i18n/**/*"
16+
- "src/**/*"
17+
- "static/**/*"
18+
- "types/**/*"
19+
- "README.md"
2020

2121
jobs:
2222
gpt_translate:
2323
runs-on: ubuntu-latest
2424

2525
steps:
26-
- name: Checkout repository with two latest commits
27-
uses: actions/checkout@v3
28-
with:
29-
fetch-depth: 2
26+
- name: Checkout repository with two latest commits
27+
uses: actions/checkout@v3
28+
with:
29+
fetch-depth: 2
3030

31-
- name: get changed files name
32-
id: changed_files
33-
run: |
34-
echo "files=$(git diff --diff-filter=d --name-only HEAD^ HEAD | grep '\.md$' | grep -v 'cn' | sed -e 's/^/.\//' | tr '\n' ' ')" >> $GITHUB_OUTPUT
31+
- name: get changed files name
32+
id: changed_files
33+
run: |
34+
echo "files=$(git diff --diff-filter=d --name-only HEAD^ HEAD | grep '\.md$' | grep -v 'cn' | sed -e 's/^/.\//' | tr '\n' ' ')" >> $GITHUB_OUTPUT
3535
36-
- name: Run GPT Translate
37-
38-
with:
39-
apikey: ${{ secrets.OPENAI_API_KEY }}
40-
model: "deepseek-chat"
41-
inputFiles: '${{ steps.changed_files.outputs.files }}'
42-
outputFiles: 'docs/cn/**/*.md'
43-
languages: 'Simplified-Chinese'
44-
prompt: "You are a translation engine that has knowledge of databases and is familiar with SQL, HTML and Markdown syntax. \ Databend is a cloud-native data warehouse and an alternative to Snowflake. \ I am translating the Databend documentation for helping users.\ Translate the Markdown content I'll paste later into {targetLanguage}.\ You must strictly follow the rules below.\ - Never change the Markdown markup structure. Don't add or remove links. Do not change any URL.\ - Never change the contents of code blocks even if they appear to have a bug.\ - Always preserve the original line breaks. Do not add or remove blank lines.\ - Never touch the permalink such as `{/*examples*/}` at the end of each heading.\ - Never touch HTML-like tags such as `<Notes>`.\ - Correctly format the document for best rendering. \ - Please do not translate database or computing-specific terms"
45-
basePath: "https://api.deepseek.com"
36+
- name: Run GPT Translate
37+
38+
with:
39+
apikey: ${{ secrets.OPENAI_API_KEY }}
40+
model: "deepseek-chat"
41+
inputFiles: "${{ steps.changed_files.outputs.files }}"
42+
outputFiles: "docs/cn/**/*.md"
43+
languages: "Simplified-Chinese"
44+
prompt: "You are a translation engine that has knowledge of databases and is familiar with SQL, HTML and Markdown syntax. \ Databend is a cloud-native data warehouse and an alternative to Snowflake. \ I am translating the Databend documentation for helping users.\ Translate the Markdown content I'll paste later into {targetLanguage}.\ You must strictly follow the rules below.\ - Never change the Markdown markup structure. Don't add or remove links. Do not change any URL.\ - Never change the contents of code blocks even if they appear to have a bug.\ - Always preserve the original line breaks. Do not add or remove blank lines.\ - Never touch the permalink such as `{/*examples*/}` at the end of each heading.\ - Never touch HTML-like tags such as `<Notes>`.\ - Correctly format the document for best rendering. \ - Please do not translate database or computing-specific terms"
45+
basePath: "https://api.deepseek.com"

docs/cn/guides/00-overview/00-editions/01-dee/10-enterprise-features.md

Lines changed: 80 additions & 80 deletions
Large diffs are not rendered by default.

docs/cn/guides/00-overview/index.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,25 @@ title: 概览
33
slug: /
44
---
55

6-
欢迎阅读 Databend(发音为 /ˈdeɪtəˌbɛnd/)指南,本指南涵盖 Databend 使用中有必要了解的各个方面
6+
欢迎阅读 Databend(发音为 /ˈdeɪtəˌbɛnd/)指南,涵盖 Databend 版本的各个方面
77

88
## 术语表
99

10-
- **`Databend`** [开源版本](https://github.com/datafuselabs/databend)
11-
- **`Databend Cloud`** 是一个完全 [托管的云服务](https://databend.com)
12-
- **`Databend(Cloud)`** 同时适用于 `Databend``Databend Cloud`
10+
- **`Databend`** 指的是 [开源版本](https://github.com/datafuselabs/databend)
11+
- **`Databend Cloud`** 是一项完全 [托管的云服务](https://databend.com)
12+
- **`Databend(Cloud)`** 共同表示 `Databend``Databend Cloud`
1313

1414
## 入门指南
1515

16-
- **[部署与升级 Databend](../10-deploy/index.md)**部署、升级和监控自托管 Databend 的指南。
17-
- **[Databend Cloud 快速入门](../20-cloud/index.md)**:Databend Cloud 的快速入门指南
18-
- **[连接到 Databend](../30-sql-clients/index.md)**:使用各种驱动程序连接到 Databend(Cloud)。
16+
- **[自托管 Databend](../10-deploy/index.md)**关于部署、升级和监控自托管 Databend 的指南。
17+
- **[Databend Cloud](../20-cloud/index.md)**快速开始使用 Databend Cloud。
18+
- **[连接](../30-sql-clients/index.md)**:使用各种驱动程序连接到 Databend(Cloud)。
1919
- **[数据加载](../40-load-data/index.md)**:以多种格式批量导入数据到 Databend(Cloud)。
2020
- **[数据卸载](../50-unload-data/index.md)**:从 Databend(Cloud) 导出数据。
2121
- **[实时 CDC 摄取](../40-load-data/05-continuous-data-pipelines/01-stream.md)**:变更数据捕获(CDC)实现实时数据摄取。
2222
- **[自动化数据管道](../40-load-data/05-continuous-data-pipelines/02-task.md)**:创建任务以自动化和管理持续数据管道。
2323
- **[外部函数](../54-query/04-external-function.md)**:使用外部函数扩展 Databend 的功能。
24+
- **[数据管理](../57-data-management/index.md)**:管理 Databend(Cloud) 中的数据。
2425
- **[安全性](../56-security/index.md)**:Databend(Cloud) 中的安全特性。
25-
- **[可视化](../31-visualize/index.md)** Databend(Cloud) 与可视化工具集成
26-
- **[基准测试](../80-benchmark/index.md)**Databend Cloud 在 TPC-H SF100 基准测试上与 Snowflake 的性能对比
26+
- **[可视化](../31-visualize/index.md)**使用可视化工具与 Databend(Cloud) 结合
27+
- **[基准测试](../80-benchmark/index.md)**:在 TPC-H SF100 基准测试中比较 Databend Cloud 与 Snowflake 的性能
Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
---
2-
title: 定价与计费
2+
title: 定价与账单
33
---
44

5-
您在 Databend Cloud 上的费用由以下几个部分组成:仓库、存储和云服务费。本页面包含有关每个组件的定价信息以及计费方式的说明
5+
您在 Databend Cloud 上的费用由以下几个部分组成:计算集群、存储和云服务费。本页面包含各部分的价格信息以及账单的说明
66

77
## Databend Cloud 定价
88

9-
本节提供有关仓库、存储和云服务的定价信息
9+
本节提供有关 Databend Cloud 计算集群、存储和云服务的价格信息
1010

11-
### 仓库定价
11+
### 计算集群价格
1212

13-
您的仓库在运行时(具体来说,处于运行状态时)会产生费用。费用取决于仓库的大小和运行时间**计费按秒计算**。例如,如果您有一个仓库运行了三秒钟,您将为此精确时间收费
13+
您的计算集群在运行时(具体来说,处于运行状态时)会产生费用。费用取决于计算集群的大小和运行时间**计算集群按秒计算**。例如,如果您有一个计算集群运行了三秒钟,您将只为此段时间付费
1414

15-
仓库的大小指的是它包含的 vCPU 数量,不同大小的仓库和您使用的 Databend Cloud 版本会有不同的价格
15+
计算集群的大小指的是它包含的 vCPU 数量。一个计算集群的价格取决于它的大小和您使用的 Databend Cloud 版本
1616

1717
| 大小 (vCPUs) | 每小时费用 (标准版) | 每小时费用 (商业版) |
18-
|--------------|----------------------|----------------------|
19-
| XSmall (8) | $1.00 | $1.50 |
20-
| Small (16) | $2.00 | $3.00 |
21-
| Medium (32) | $4.00 | $6.00 |
22-
| Large (64) | $8.00 | $12.00 |
23-
| XLarge (128) | $16.00 | $24.00 |
18+
| ------------ | ------------------- | ------------------- |
19+
| XSmall (8) | ¥ 3.00 | ¥ 4.50 |
20+
| Small (16) | ¥ 6.00 | ¥ 9.00 |
21+
| Medium (32) | ¥ 12.00 | ¥ 18.00 |
22+
| Large (64) | ¥ 24.00 | ¥ 36.00 |
23+
| XLarge (128) | ¥ 48.00 | ¥ 36.00 |
2424

25-
暂停的仓库不会消耗任何资源。默认情况下,Databend Cloud 会在五分钟不活动后自动暂停仓库以节省资源和成本。您可以根据自己的偏好调整或禁用此自动暂停功能。
25+
暂停的计算集群不会消耗任何资源。默认情况下,Databend Cloud 会在五分钟不活动后自动暂停计算集群以节省资源和成本。您可以根据自己的偏好调整或禁用此自动暂停功能。
2626

2727
### 存储定价
2828

29-
您在 Databend Cloud 中的数据实际上存储在 Amazon S3 中。Databend Cloud 的存储成本基于 Amazon S3 的定价。目前,标准版和商业版的定价均为每月每 TB $23.00。
29+
您在 Databend Cloud 中的数据实际上存储在 Amazon S3 中。Databend Cloud 的存储成本基于 Amazon S3 的定价。目前,标准版和商业版的定价均为每月每 TB 160.00
3030

31-
| 版本 | 每 TB 每月价格 |
32-
|------------------|----------------|
33-
| 标准版 | $23.00 |
34-
| 商业版 | $23.00 |
31+
| 版本 | 每 TB 每月价格 |
32+
| ------ | -------------- |
33+
| 标准版 | ¥ 160.00 |
34+
| 商业版 | ¥ 160.00 |
3535

3636
### 云服务定价
3737

38-
云服务费目前包括 API 请求的费用。每次您使用 Databend Cloud 运行 SQL 查询时,都会通过 [Databend HTTP 处理器](/developer/apis/http)`databend-query` 发送一个 REST API 请求。在标准版中,每 10,000 次 API 请求收费 $1,而在商业版中,每 10,000 次 API 请求收费 $2
38+
云服务费目前包括 API 请求的费用。每次您使用 Databend Cloud 运行 SQL 查询时,都会通过 [Databend HTTP 处理器](/developer/apis/http)`databend-query` 发送一个 REST API 请求。在标准版中,每 10,000 次 API 请求收费 3 元,而在商业版中,每 10,000 次 API 请求收费 4.5 元
3939

40-
| 版本 | 每 10,000 次 API 请求费用 |
41-
|------------------|--------------------------|
42-
| 标准版 | $1.00 |
43-
| 商业版 | $2.00 |
40+
| 版本 | 每 10,000 次 API 请求费用 |
41+
| ------ | ------------------------- |
42+
| 标准版 | ¥ 3.00 |
43+
| 商业版 | ¥ 4.50 |
4444

45-
## Databend Cloud 计费
45+
## Databend Cloud 账单
4646

47-
计费周期设定为每个日历月,从每月的第一天到最后一天。对于您的第一个月,计费周期将从您的组织创建的那一天开始。
47+
计费周期设定为每个自然月,从每月的第一天到最后一天。对于您的第一个月,计费周期将从您的组织创建的那一天开始。
4848

49-
要查看您的计费详情,请前往 **管理**,然后点击 **计费**。在那里,您可以查看您的账单并关联信用卡进行支付
49+
要查看您的账单,请前往 **管理**,然后点击 **费用中心**
5050

51-
在向用户计费时,Databend Cloud 首先应用优惠券。如果有多个优惠券可用,系统会优先从到期日期最早的优惠券中扣除。请确保在优惠券到期前使用。
51+
在进行扣费时,Databend Cloud 首先使用优惠券。如果有多个优惠券可用,系统会优先从到期日期最早的优惠券中扣除。请确保在优惠券到期前使用。
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: 数据清理与回收
3+
sidebar_label: 数据回收
4+
---
5+
6+
在 Databend 中,当你执行 `DROP``TRUNCATE``DELETE` 命令时,数据并未真正删除,允许时间旅行回到之前的状态。
7+
8+
数据分为两种类型:
9+
- **历史数据**:用于时间旅行,存储历史数据或已删除表的数据。
10+
- **临时数据**:系统用于存储溢出数据。
11+
12+
如果数据量较大,你可以运行几个命令([企业版功能](/guides/overview/editions/dee/enterprise-features))来删除这些数据并释放存储空间。
13+
14+
## 清理已删除表的数据
15+
16+
删除所有已删除表的数据文件,释放存储空间。
17+
18+
```sql
19+
VACUUM DROP TABLE;
20+
```
21+
22+
更多信息请参见 [VACUUM DROP TABLE](/sql/sql-commands/administration-cmds/vacuum-drop-table)
23+
24+
## 清理表的历史数据
25+
26+
移除指定表的历史数据,清除旧版本并释放存储空间。
27+
28+
```sql
29+
VACUUM TABLE <table_name>;
30+
```
31+
32+
更多信息请参见 [VACUUM TABLE](/sql/sql-commands/administration-cmds/vacuum-table)
33+
34+
## 清理临时数据
35+
36+
清除用于连接、聚合和排序的临时溢出文件,释放存储空间。
37+
38+
```sql
39+
VACUUM TEMPORARY FILES;
40+
```
41+
42+
更多信息请参见 [VACUUM TEMPORARY FILES](/sql/sql-commands/administration-cmds/vacuum-temp-files)

0 commit comments

Comments
 (0)