Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add MV #227

Merged
merged 5 commits into from
Jun 8, 2024
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
Binary file added docs/query-optimization/assets/mv1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/query-optimization/assets/mv2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/query-optimization/assets/mv3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/query-optimization/assets/mv4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/query-optimization/assets/mv5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/query-optimization/assets/mv6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/query-optimization/assets/mv7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/query-optimization/assets/mv8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
535 changes: 535 additions & 0 deletions docs/query-optimization/materialized-view.mdx

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions docs/table-design/indexes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ SETTINGS index_granularity = 1024;

#### Chinese Text Indexing

ByteHouse Cloud Edition can index Chinese text using a default configured dictionary.
ByConity can index Chinese text using a default configured dictionary.


```sql
CREATE TABLE test_gin.ch_docs
Expand Down Expand Up @@ -169,7 +170,7 @@ select count() from test_gin.ch_docs_ngram where doc like '%溥仪%';

When dealing with large amounts of data, query performance can deteriorate as a complete scan of every column value may be required to apply WHERE clause conditions.

To address this, ByteHouse supports data skipping indexes, enabling skipping of significant data blocks confirmed to contain no matching values.
To address this, ByConity supports data skipping indexes, enabling skipping of significant data blocks confirmed to contain no matching values.

### Usage Limitations

Expand Down Expand Up @@ -228,7 +229,7 @@ Bloom filters are particularly effective for efficiently testing a large number

### Usage Examples

#### Loading Dataset into ByteHouse
#### Loading Dataset into

```sql
DROP DATABASE IF EXISTS test_si;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ SETTINGS index_granularity = 1024;
```

#### 中文文本索引方式
ByteHouse 云数仓版可以通过默认配置的词库进行中文文本索引。

ByConity 可以通过默认配置的词库进行中文文本索引。

```sql
CREATE TABLE test_gin.ch_docs
Expand Down Expand Up @@ -168,7 +169,8 @@ select count() from test_gin.ch_docs_ngram where doc like '%溥仪%';
## 跳数索引

当尝试处理大量数据时,查询性能可能会恶化,因为可能需要对每个列值进行完整扫描才能应用 WHERE 子句条件。
为了解决这个问题,ByteHouse 支持跳数索引(Data Skipping Index),使人们能够跳过一些确认没有匹配值的重要数据块。

为了解决这个问题,ByConity 支持跳数索引(Data Skipping Index),使人们能够跳过一些确认没有匹配值的重要数据块。

### 使用限制
暂不支持索引类型:
Expand Down Expand Up @@ -220,7 +222,7 @@ INDEX key_i_idx key_i TYPE minmax GRANULARITY 1,

### 使用举例

#### 载入数据集到 ByteHouse
#### 载入数据集到 ByConity

```sql
DROP DATABASE IF EXISTS test_si;
Expand Down
Loading