提交 195f142b 编写于 作者: B BayoNet

Typo fixes.

上级 c3a47815
......@@ -6,7 +6,7 @@ There are a [variety of ways](#dicts-external_dicts_dict_layout-manner) to store
We recommend [flat](#dicts-external_dicts_dict_layout-flat), [hashed](#dicts-external_dicts_dict_layout-hashed)and[complex_key_hashed](#dicts-external_dicts_dict_layout-complex_key_hashed). which provide optimal processing speed.
Caching is not recommended because of potentially poor performance and difficulties in selecting optimal parameters. Read more in the section " [cache](#dicts-external_dicts_dict_layout-cache)".
Caching is not recommended because of potentially poor performance and difficulties in selecting optimal parameters. Read more in the section "[cache](#dicts-external_dicts_dict_layout-cache)".
There are several ways to improve dictionary performance:
......
......@@ -42,16 +42,16 @@ Query the dictionary data:
```sql
select name, type, key, attribute.names, attribute.types, bytes_allocated, element_count,source from system.dictionaries where name = 'products';
SELECT
name,
type,
key,
attribute.names,
attribute.types,
bytes_allocated,
element_count,
SELECT
name,
type,
key,
attribute.names,
attribute.types,
bytes_allocated,
element_count,
source
FROM system.dictionaries
FROM system.dictionaries
WHERE name = 'products'
```
......@@ -78,8 +78,8 @@ create table products (product_id UInt64, title String) Engine = Dictionary(prod
CREATE TABLE products
(
product_id UInt64,
title String,
product_id UInt64,
title String,
)
ENGINE = Dictionary(products)
```
......@@ -95,13 +95,14 @@ Take a look at what's in the table.
select * from products limit 1;
SELECT *
FROM products
FROM products
LIMIT 1
```
```
┌────product_id─┬─title───────────┐
│ 152689 │ Некоторый товар
│ 152689 │ Some item
└───────────────┴─────────────────┘
1 rows in set. Elapsed: 0.006 sec.
1 rows in set. Elapsed: 0.006 sec.
```
......@@ -6,7 +6,7 @@
Рекомендуем [flat](#dicts-external_dicts_dict_layout-flat), [hashed](#dicts-external_dicts_dict_layout-hashed) и [complex_key_hashed](#dicts-external_dicts_dict_layout-complex_key_hashed). Скорость обработки словарей при этом максимальна.
Размещение с кэшированием не рекомендуется использовать из-за потенциально низкой производительности и сложностей в подборе оптимальных параметров. Читайте об этом подробнее в разделе " [cache](#dicts-external_dicts_dict_layout-cache)".
Размещение с кэшированием не рекомендуется использовать из-за потенциально низкой производительности и сложностей в подборе оптимальных параметров. Читайте об этом подробнее в разделе "[cache](#dicts-external_dicts_dict_layout-cache)".
Повысить производительнось словарей можно следующими способами:
......
......@@ -42,16 +42,16 @@
```sql
select name, type, key, attribute.names, attribute.types, bytes_allocated, element_count,source from system.dictionaries where name = 'products';
SELECT
name,
type,
key,
attribute.names,
attribute.types,
bytes_allocated,
element_count,
SELECT
name,
type,
key,
attribute.names,
attribute.types,
bytes_allocated,
element_count,
source
FROM system.dictionaries
FROM system.dictionaries
WHERE name = 'products'
```
```
......@@ -78,15 +78,15 @@ create table products (product_id UInt64, title String) Engine = Dictionary(prod
CREATE TABLE products
(
product_id UInt64,
title String,
product_id UInt64,
title String,
)
ENGINE = Dictionary(products)
```
```
Ok.
0 rows in set. Elapsed: 0.004 sec.
0 rows in set. Elapsed: 0.004 sec.
```
Проверим что у нас в таблице?
......@@ -95,13 +95,14 @@ Ok.
select * from products limit 1;
SELECT *
FROM products
FROM products
LIMIT 1
```
```
┌────product_id─┬─title───────────┐
│ 152689 │ Некоторый товар
│ 152689 │ Some item
└───────────────┴─────────────────┘
1 rows in set. Elapsed: 0.006 sec.
1 rows in set. Elapsed: 0.006 sec.
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册