mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Update clickhouse-v21.12-released.md
This commit is contained in:
parent
74a0381031
commit
21cd8c2497
@ -228,10 +228,10 @@ The query can be automatically rewritten to:
|
|||||||
SELECT count() FROM hits WHERE Domain = 'ghe.clickhouse.tech'
|
SELECT count() FROM hits WHERE Domain = 'ghe.clickhouse.tech'
|
||||||
```
|
```
|
||||||
|
|
||||||
because `Domain` column is smaller, more compressable, will be faster to read and it does not require calculation of domain.
|
because `Domain` column is smaller, more compressable, will be faster to read and it does not require calculation of the domain from URL.
|
||||||
The only thing you need is to enable the `optimize_using_constraints` and `optimize_substitute_columns` settings.
|
The only thing you need is to enable the `optimize_using_constraints` and `optimize_substitute_columns` settings.
|
||||||
|
|
||||||
As a bonus, new type of constraints are introduced: `ASSUME`.
|
As a bonus, new type of constraints is introduced: `ASSUME`.
|
||||||
|
|
||||||
```
|
```
|
||||||
CONSTRAINT my_constraint ASSUME Domain = domainWithoutWWW(URL)
|
CONSTRAINT my_constraint ASSUME Domain = domainWithoutWWW(URL)
|
||||||
|
Loading…
Reference in New Issue
Block a user