Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions docs/cn/guides/00-products/01-dee/10-enterprise-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ import DatabendTable from '@site/src/components/DatabendTable';
| 存储加密 (Storage Encryption) | 安全与合规 | 使用服务托管、KMS 或客户管理密钥对静态数据加密。 |
| [BendSave](/guides/data-management/data-recovery#bendsave) | 灾难恢复 | 备份并恢复整个 Databend 集群数据,用于灾难恢复。 |
| [故障安全 (Fail-Safe)](/guides/security/fail-safe) | 灾难恢复 | 从 S3 兼容对象存储恢复丢失或误删的数据。 |
| [聚合索引 (Aggregating Index)](/sql/sql-commands/ddl/aggregating-index) | 查询性能 | 通过预计算并索引的聚合加速查询。 |
| [全文索引 (Full-Text Index)](/guides/performance/fulltext-index) | 查询性能 | 利用倒排索引与相关性评分实现极速文本搜索。 |
| [Ngram 索引 (Ngram Index)](/guides/performance/ngram-index) | 查询性能 | 通过通配符搜索加速 LIKE 模式匹配查询。 |
| [虚拟列 (Virtual Column)](/sql/sql-commands/ddl/virtual-column) | 查询性能 | 零配置即可自动加速 VARIANT 数据的 JSON 查询。 |
| [动态列 (Dynamic Column)](/sql/sql-commands/ddl/table/ddl-create-table#computed-columns) | 查询性能 | 以存储或虚拟计算模式,从标量表达式自动生成列。 |
| [Python UDF](/sql/sql-commands/ddl/udf/ddl-create-function-embedded#python) | 高级分析 | 在 SQL 查询中通过内置处理器执行 Python 代码。 |
Expand Down Expand Up @@ -82,9 +79,6 @@ tbody={[
width={['70%', '15%', '15%']}
thead={['功能', 'Databend 社区版', 'Databend 企业版']}
tbody={[
['聚合索引(预计算聚合)', '✕', '✓'],
['全文索引(文本搜索)', '✕', '✓'],
['Ngram 索引(模式匹配)', '✕', '✓'],
['虚拟列(JSON 查询加速)', '✕', '✓'],
['动态列(计算列)', '✕', '✓'],
]}
Expand Down Expand Up @@ -166,4 +160,4 @@ tbody={[
['部署与升级', '✕', '✓'],
['运维支持', '✕', '✓'],
]}
/>
/>
6 changes: 1 addition & 5 deletions docs/cn/guides/55-performance/02-aggregating-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ title: 聚合索引

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

import EEFeature from '@site/src/components/EEFeature';

<EEFeature featureName='AGGREGATING INDEX'/>

聚合索引通过预计算和存储聚合结果,显著加速分析查询,避免对常见分析操作进行全表扫描。

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

---

*聚合索引对大数据集上的重复分析工作负载效果最佳,建议从高频仪表盘和报表查询开始实施。*
*聚合索引对大数据集上的重复分析工作负载效果最佳,建议从高频仪表盘和报表查询开始实施。*
7 changes: 1 addition & 6 deletions docs/cn/guides/55-performance/03-fulltext-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ title: 全文索引(Full-Text Index)

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

import EEFeature from '@site/src/components/EEFeature';

<EEFeature featureName='INVERTED INDEX'/>


全文索引(倒排索引)通过将词条映射到文档,自动在大规模文档集合中实现闪电般快速的文本搜索,彻底告别缓慢的表扫描。

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

---

*全文索引是面向大规模文档集合、需要快速复杂文本搜索能力的应用必备利器。*
*全文索引是面向大规模文档集合、需要快速复杂文本搜索能力的应用必备利器。*
6 changes: 3 additions & 3 deletions docs/cn/guides/55-performance/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ Databend 主要通过**多种索引技术**加速查询性能,包括数据聚
| Cluster Key | ✅ | ✅ | ✅ |
| Query Result Cache | ✅ | ✅ | ✅ |
| Virtual Column | ❌ | ✅ | ✅ |
| Aggregating Index | | ✅ | ✅ |
| Full-Text Index | | ✅ | ✅ |
| Ngram Index | | ✅ | ✅ |
| Aggregating Index | | ✅ | ✅ |
| Full-Text Index | | ✅ | ✅ |
| Ngram Index | | ✅ | ✅ |
6 changes: 1 addition & 5 deletions docs/cn/guides/55-performance/ngram-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ title: Ngram 索引

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

import EEFeature from '@site/src/components/EEFeature';

<EEFeature featureName='NGRAM INDEX'/>

Ngram 索引(Ngram Index)能够加速使用 `LIKE` 操作符和通配符(`%`)的模式匹配查询,实现快速的子字符串搜索,而无需进行全表扫描。

## 它解决了什么问题?
Expand Down Expand Up @@ -186,4 +182,4 @@ TableScan

---

*对于需要在大型文本数据集上使用 `LIKE` 查询进行快速模式匹配的应用,Ngram 索引(Ngram Index)至关重要。*
*对于需要在大型文本数据集上使用 `LIKE` 查询进行快速模式匹配的应用,Ngram 索引(Ngram Index)至关重要。*
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ import FunctionDescription from '@site/src/components/FunctionDescription';

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

import EEFeature from '@site/src/components/EEFeature';

<EEFeature featureName='VECTOR INDEX'/>


VECTOR 数据类型用于存储由 32 位浮点数组成的多维数组,专为机器学习、人工智能应用和相似性搜索操作而设计。每个向量在创建时都指定了固定的维度(长度)。

## 语法
Expand Down Expand Up @@ -142,4 +137,4 @@ FILE_FORMAT = (TYPE = 'PARQUET');

## 向量函数

请参阅 [向量函数](/sql/sql-functions/vector-functions/)。
请参阅 [向量函数](/sql/sql-functions/vector-functions/)。
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import FunctionDescription from '@site/src/components/FunctionDescription';

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

import EEFeature from '@site/src/components/EEFeature';

<EEFeature featureName='AGGREGATING INDEX'/>

在 Databend 中创建一个新的聚合索引(Aggregating Index)。

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

-- 创建一个聚合索引
CREATE AGGREGATING INDEX my_agg_index AS SELECT MIN(a), MAX(c) FROM agg;
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import FunctionDescription from '@site/src/components/FunctionDescription';

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

import EEFeature from '@site/src/components/EEFeature';

<EEFeature featureName='AGGREGATING INDEX'/>

删除已存在的 aggregating index。请注意,删除 aggregating index 不会移除相关的存储块。要同时删除这些块,请使用 [VACUUM TABLE](../01-table/91-vacuum-table.md) 命令。要禁用 aggregating indexing 功能,请将 `enable_aggregating_index_scan` 设置为 0。

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

```sql
DROP AGGREGATING INDEX my_agg_index;
```
```
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
title: 聚合索引(Aggregating Index)
---
import EEFeature from '@site/src/components/EEFeature';

<EEFeature featureName='AGGREGATING INDEX'/>

本页面全面概述了 Databend 中的聚合索引操作,按功能组织以便参考。

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

:::note
Databend 中的聚合索引通过预计算和存储聚合结果,提高聚合查询的性能。
:::
:::
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import FunctionDescription from '@site/src/components/FunctionDescription';

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

import EEFeature from '@site/src/components/EEFeature';

<EEFeature featureName='AGGREGATING INDEX'/>

## 语法

```sql
Expand Down Expand Up @@ -41,4 +37,4 @@ INSERT INTO agg VALUES (2,2,5);

-- Refresh the aggregating index
REFRESH AGGREGATING INDEX my_agg_index;
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import FunctionDescription from '@site/src/components/FunctionDescription';

<FunctionDescription description="Introduced or updated: v1.2.405"/>

import EEFeature from '@site/src/components/EEFeature';

<EEFeature featureName='INVERTED INDEX'/>

在 Databend 中创建一个新的 inverted index。

## 语法
Expand Down Expand Up @@ -83,4 +79,4 @@ SHOW CREATE TABLE customer_feedback;
├───────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ customer_feedback │ CREATE TABLE customer_feedback (\n comment_title VARCHAR NULL,\n comment_body VARCHAR NULL,\n SYNC INVERTED INDEX customer_feedback_idx (comment_title, comment_body)\n) ENGINE=FUSE │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ import FunctionDescription from '@site/src/components/FunctionDescription';

<FunctionDescription description="Introduced or updated: v1.2.405"/>

import EEFeature from '@site/src/components/EEFeature';

<EEFeature featureName='INVERTED INDEX'/>

删除 Databend 中的倒排索引。

## 语法
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
title: 倒排索引(Inverted Index)
---
import EEFeature from '@site/src/components/EEFeature';

<EEFeature featureName='INVERTED INDEX'/>

本页面按功能分类,全面介绍 Databend 中的倒排索引操作,便于快速查阅。

## 倒排索引管理
Expand All @@ -21,4 +17,4 @@ import EEFeature from '@site/src/components/EEFeature';

:::note
Databend 的倒排索引为文本数据实现高效全文搜索功能,支持在大型文本列中快速执行关键词检索。
:::
:::
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import FunctionDescription from '@site/src/components/FunctionDescription';

<FunctionDescription description="Introduced or updated: v1.2.405"/>

import EEFeature from '@site/src/components/EEFeature';

<EEFeature featureName='INVERTED INDEX'/>

刷新 Databend 中的倒排索引。在以下情况下,倒排索引需要刷新:

- 当在创建倒排索引之前将数据插入到表中时,创建后需要手动刷新倒排索引,才能有效地索引插入的数据。
Expand All @@ -31,4 +27,4 @@ REFRESH INVERTED INDEX <index> ON [<database>.]<table> [LIMIT <limit>]
```sql
-- 刷新表 "customer_feedback" 的名为 "customer_feedback_idx" 的倒排索引
REFRESH INVERTED INDEX customer_feedback_idx ON customer_feedback;
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import FunctionDescription from '@site/src/components/FunctionDescription';

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

import EEFeature from '@site/src/components/EEFeature';

<EEFeature featureName='NGRAM INDEX'/>

为表的某一列创建 Ngram 索引(Index)。

## 语法
Expand Down Expand Up @@ -117,4 +113,4 @@ SELECT * FROM phrases WHERE text LIKE '%banana%';

```sql
DROP NGRAM INDEX idx_text ON phrases;
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import FunctionDescription from '@site/src/components/FunctionDescription';

<FunctionDescription description="Introduced or updated: v1.2.726"/>

import EEFeature from '@site/src/components/EEFeature';

<EEFeature featureName='NGRAM INDEX'/>

从表中删除现有的 NGRAM 索引。

## 语法
Expand All @@ -26,4 +22,4 @@ ON [<database>.]<table_name>;

```sql
DROP NGRAM INDEX idx1 ON amazon_reviews_ngram;
```
```
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
title: Ngram 索引
---
import EEFeature from '@site/src/components/EEFeature';

<EEFeature featureName='NGRAM INDEX'/>

本页面全面概述了 Databend 中的 Ngram 索引(Ngram Index)操作,并按功能进行组织,方便参考。

## Ngram 索引管理
Expand All @@ -17,4 +13,4 @@ import EEFeature from '@site/src/components/EEFeature';

:::note
Databend 的 Ngram 索引(Ngram Index)支持高效执行文本数据的子字符串和模式匹配搜索,显著提升 LIKE 及类似操作的性能。
:::
:::
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import FunctionDescription from '@site/src/components/FunctionDescription';

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

import EEFeature from '@site/src/components/EEFeature';

<EEFeature featureName='NGRAM INDEX'/>

刷新表上已有的 NGRAM 索引(NGRAM INDEX)。

## 语法
Expand All @@ -26,4 +22,4 @@ ON [<database>.]<table_name>;

```sql
REFRESH NGRAM INDEX idx1 ON amazon_reviews_ngram;
```
```
Loading
Loading