Update clickhouse-v21.12-released.md

This commit is contained in:
alexey-milovidov 2021-12-16 06:38:20 +03:00 committed by GitHub
parent 74a0381031
commit 21cd8c2497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,10 +228,10 @@ The query can be automatically rewritten to:
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.
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)