Skip to content

Commit f052ef0

Browse files
authored
docs: make advanced indexes available to community (#2930)
1 parent a3fe7c8 commit f052ef0

36 files changed

+34
-180
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ import DatabendTable from '@site/src/components/DatabendTable';
1515
| 存储加密 (Storage Encryption) | 安全与合规 | 使用服务托管、KMS 或客户管理密钥对静态数据加密。 |
1616
| [BendSave](/guides/data-management/data-recovery#bendsave) | 灾难恢复 | 备份并恢复整个 Databend 集群数据,用于灾难恢复。 |
1717
| [故障安全 (Fail-Safe)](/guides/security/fail-safe) | 灾难恢复 | 从 S3 兼容对象存储恢复丢失或误删的数据。 |
18-
| [聚合索引 (Aggregating Index)](/sql/sql-commands/ddl/aggregating-index) | 查询性能 | 通过预计算并索引的聚合加速查询。 |
19-
| [全文索引 (Full-Text Index)](/guides/performance/fulltext-index) | 查询性能 | 利用倒排索引与相关性评分实现极速文本搜索。 |
20-
| [Ngram 索引 (Ngram Index)](/guides/performance/ngram-index) | 查询性能 | 通过通配符搜索加速 LIKE 模式匹配查询。 |
2118
| [虚拟列 (Virtual Column)](/sql/sql-commands/ddl/virtual-column) | 查询性能 | 零配置即可自动加速 VARIANT 数据的 JSON 查询。 |
2219
| [动态列 (Dynamic Column)](/sql/sql-commands/ddl/table/ddl-create-table#computed-columns) | 查询性能 | 以存储或虚拟计算模式,从标量表达式自动生成列。 |
2320
| [Python UDF](/sql/sql-commands/ddl/udf/ddl-create-function-embedded#python) | 高级分析 | 在 SQL 查询中通过内置处理器执行 Python 代码。 |
@@ -82,9 +79,6 @@ tbody={[
8279
width={['70%', '15%', '15%']}
8380
thead={['功能', 'Databend 社区版', 'Databend 企业版']}
8481
tbody={[
85-
['聚合索引(预计算聚合)', '✕', '✓'],
86-
['全文索引(文本搜索)', '✕', '✓'],
87-
['Ngram 索引(模式匹配)', '✕', '✓'],
8882
['虚拟列(JSON 查询加速)', '✕', '✓'],
8983
['动态列(计算列)', '✕', '✓'],
9084
]}
@@ -166,4 +160,4 @@ tbody={[
166160
['部署与升级', '✕', '✓'],
167161
['运维支持', '✕', '✓'],
168162
]}
169-
/>
163+
/>

docs/cn/guides/55-performance/02-aggregating-index.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ title: 聚合索引
44

55
# 聚合索引:预计算结果实现即时分析
66

7-
import EEFeature from '@site/src/components/EEFeature';
8-
9-
<EEFeature featureName='AGGREGATING INDEX'/>
10-
117
聚合索引通过预计算和存储聚合结果,显著加速分析查询,避免对常见分析操作进行全表扫描。
128

139
## 解决了什么问题?
@@ -149,4 +145,4 @@ SET enable_aggregating_index_scan = 0; -- 禁用
149145

150146
---
151147

152-
*聚合索引对大数据集上的重复分析工作负载效果最佳,建议从高频仪表盘和报表查询开始实施。*
148+
*聚合索引对大数据集上的重复分析工作负载效果最佳,建议从高频仪表盘和报表查询开始实施。*

docs/cn/guides/55-performance/03-fulltext-index.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ title: 全文索引(Full-Text Index)
88

99
# 全文索引(Full-Text Index):自动实现闪电般快速的文本搜索
1010

11-
import EEFeature from '@site/src/components/EEFeature';
12-
13-
<EEFeature featureName='INVERTED INDEX'/>
14-
15-
1611
全文索引(倒排索引)通过将词条映射到文档,自动在大规模文档集合中实现闪电般快速的文本搜索,彻底告别缓慢的表扫描。
1712

1813
## 它解决了什么问题?
@@ -281,4 +276,4 @@ event_timestamp: 2024-04-08 12:00:00
281276

282277
---
283278

284-
*全文索引是面向大规模文档集合、需要快速复杂文本搜索能力的应用必备利器。*
279+
*全文索引是面向大规模文档集合、需要快速复杂文本搜索能力的应用必备利器。*

docs/cn/guides/55-performance/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ Databend 主要通过**多种索引技术**加速查询性能,包括数据聚
2222
| Cluster Key ||||
2323
| Query Result Cache ||||
2424
| Virtual Column ||||
25-
| Aggregating Index | |||
26-
| Full-Text Index | |||
27-
| Ngram Index | |||
25+
| Aggregating Index | |||
26+
| Full-Text Index | |||
27+
| Ngram Index | |||

docs/cn/guides/55-performance/ngram-index.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ title: Ngram 索引
44

55
# Ngram 索引(Ngram Index):为 LIKE 查询实现快速模式匹配
66

7-
import EEFeature from '@site/src/components/EEFeature';
8-
9-
<EEFeature featureName='NGRAM INDEX'/>
10-
117
Ngram 索引(Ngram Index)能够加速使用 `LIKE` 操作符和通配符(`%`)的模式匹配查询,实现快速的子字符串搜索,而无需进行全表扫描。
128

139
## 它解决了什么问题?
@@ -186,4 +182,4 @@ TableScan
186182

187183
---
188184

189-
*对于需要在大型文本数据集上使用 `LIKE` 查询进行快速模式匹配的应用,Ngram 索引(Ngram Index)至关重要。*
185+
*对于需要在大型文本数据集上使用 `LIKE` 查询进行快速模式匹配的应用,Ngram 索引(Ngram Index)至关重要。*

docs/cn/sql-reference/00-sql-reference/10-data-types/vector.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ import FunctionDescription from '@site/src/components/FunctionDescription';
66

77
<FunctionDescription description="Introduced or updated: v1.2.777"/>
88

9-
import EEFeature from '@site/src/components/EEFeature';
10-
11-
<EEFeature featureName='VECTOR INDEX'/>
12-
13-
149
VECTOR 数据类型用于存储由 32 位浮点数组成的多维数组,专为机器学习、人工智能应用和相似性搜索操作而设计。每个向量在创建时都指定了固定的维度(长度)。
1510

1611
## 语法
@@ -142,4 +137,4 @@ FILE_FORMAT = (TYPE = 'PARQUET');
142137

143138
## 向量函数
144139

145-
请参阅 [向量函数](/sql/sql-functions/vector-functions/)
140+
请参阅 [向量函数](/sql/sql-functions/vector-functions/)

docs/cn/sql-reference/10-sql-commands/00-ddl/07-aggregating-index/create-aggregating-index.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ import FunctionDescription from '@site/src/components/FunctionDescription';
77

88
<FunctionDescription description="引入或更新于:v1.2.339"/>
99

10-
import EEFeature from '@site/src/components/EEFeature';
11-
12-
<EEFeature featureName='AGGREGATING INDEX'/>
13-
1410
在 Databend 中创建一个新的聚合索引(Aggregating Index)。
1511

1612
## 语法
@@ -38,4 +34,4 @@ INSERT INTO agg VALUES (1,1,4), (1,2,1), (1,2,4), (2,2,5);
3834

3935
-- 创建一个聚合索引
4036
CREATE AGGREGATING INDEX my_agg_index AS SELECT MIN(a), MAX(c) FROM agg;
41-
```
37+
```

docs/cn/sql-reference/10-sql-commands/00-ddl/07-aggregating-index/drop-aggregating-index.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ import FunctionDescription from '@site/src/components/FunctionDescription';
77

88
<FunctionDescription description="Introduced or updated: v1.2.151"/>
99

10-
import EEFeature from '@site/src/components/EEFeature';
11-
12-
<EEFeature featureName='AGGREGATING INDEX'/>
13-
1410
删除已存在的 aggregating index。请注意,删除 aggregating index 不会移除相关的存储块。要同时删除这些块,请使用 [VACUUM TABLE](../01-table/91-vacuum-table.md) 命令。要禁用 aggregating indexing 功能,请将 `enable_aggregating_index_scan` 设置为 0。
1511

1612
## 语法
@@ -25,4 +21,4 @@ DROP AGGREGATING INDEX <index_name>
2521

2622
```sql
2723
DROP AGGREGATING INDEX my_agg_index;
28-
```
24+
```

docs/cn/sql-reference/10-sql-commands/00-ddl/07-aggregating-index/index.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
22
title: 聚合索引(Aggregating Index)
33
---
4-
import EEFeature from '@site/src/components/EEFeature';
5-
6-
<EEFeature featureName='AGGREGATING INDEX'/>
7-
84
本页面全面概述了 Databend 中的聚合索引操作,按功能组织以便参考。
95

106
## 聚合索引管理
@@ -21,4 +17,4 @@ import EEFeature from '@site/src/components/EEFeature';
2117

2218
:::note
2319
Databend 中的聚合索引通过预计算和存储聚合结果,提高聚合查询的性能。
24-
:::
20+
:::

docs/cn/sql-reference/10-sql-commands/00-ddl/07-aggregating-index/refresh-aggregating-index.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ import FunctionDescription from '@site/src/components/FunctionDescription';
77

88
<FunctionDescription description="Introduced or updated: v1.2.151"/>
99

10-
import EEFeature from '@site/src/components/EEFeature';
11-
12-
<EEFeature featureName='AGGREGATING INDEX'/>
13-
1410
## 语法
1511

1612
```sql
@@ -41,4 +37,4 @@ INSERT INTO agg VALUES (2,2,5);
4137

4238
-- Refresh the aggregating index
4339
REFRESH AGGREGATING INDEX my_agg_index;
44-
```
40+
```

0 commit comments

Comments
 (0)