Skip to content

Commit c136bee

Browse files
committed
lots of docs fixes
1 parent 51c775c commit c136bee

File tree

214 files changed

+308
-216
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+308
-216
lines changed

docs/en/getting_started/example_datasets/metrica.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ clickhouse-client --query "SELECT COUNT(*) FROM datasets.visits_v1"
5757

5858
## Example Queries
5959

60-
[ClickHouse tutorial](../tutorial.md) is based on Yandex.Metrica dataset and the recommended way to get started with this dataset is to just go through tutorial.
60+
[ClickHouse tutorial](../../getting_started/tutorial.md) is based on Yandex.Metrica dataset and the recommended way to get started with this dataset is to just go through tutorial.
6161

6262
Additional examples of queries to these tables can be found among [stateful tests](https://github.com/yandex/ClickHouse/tree/master/dbms/tests/queries/1_stateful) of ClickHouse (they are named `test.hists` and `test.visits` there).

docs/en/getting_started/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ clickhouse-client --query "INSERT INTO tutorial.hits_v1 FORMAT TSV" --max_insert
459459
clickhouse-client --query "INSERT INTO tutorial.visits_v1 FORMAT TSV" --max_insert_block_size=100000 < visits_v1.tsv
460460
```
461461

462-
ClickHouse has a lot of [settings to tune](../operations/settings.md) and one way to specify them in console client is via arguments, as we can see with `--max_insert_block_size`. The easiest way to figure out what settings are available, what do they mean and what the defaults are is to query the `system.settings` table:
462+
ClickHouse has a lot of [settings to tune](../operations/settings/index.md) and one way to specify them in console client is via arguments, as we can see with `--max_insert_block_size`. The easiest way to figure out what settings are available, what do they mean and what the defaults are is to query the `system.settings` table:
463463

464464
``` sql
465465
SELECT name, value, changed, description

docs/en/index.md

Lines changed: 59 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# What is ClickHouse?
1+
# ClickHouseとは?
22

3-
ClickHouse is a column-oriented database management system (DBMS) for online analytical processing of queries (OLAP).
3+
ClickHouseは、クエリのオンライン分析処理(OLAP)用の列指向のデータベース管理システム(DBMS)です。
44

5-
In a "normal" row-oriented DBMS, data is stored in this order:
5+
「通常の」行指向のDBMSでは、データは次の順序で保存されます。
66

77
| Row | WatchID | JavaEnable | Title | GoodEvent | EventTime |
88
| ------ | ------------------- | ---------- | ------------------ | --------- | ------------------- |
@@ -11,12 +11,12 @@ In a "normal" row-oriented DBMS, data is stored in this order:
1111
| #2 | 89953706054 | 1 | Mission | 1 | 2016-05-18 07:38:00 |
1212
| #N | ... | ... | ... | ... | ... |
1313

14-
In other words, all the values related to a row are physically stored next to each other.
14+
つまり、行に関連するすべての値は物理的に隣り合わせに格納されます。
1515

16-
Examples of a row-oriented DBMS are MySQL, Postgres, and MS SQL Server.
16+
行指向のDBMSの例:MySQL, Postgres および MS SQL Server
1717
{: .grey }
1818

19-
In a column-oriented DBMS, data is stored like this:
19+
列指向のDBMSでは、データは次のように保存されます:
2020

2121
| Row: | #0 | #1 | #2 | #N |
2222
| ----------- | ------------------- | ------------------- | ------------------- | ------------------- |
@@ -26,68 +26,74 @@ In a column-oriented DBMS, data is stored like this:
2626
| GoodEvent: | 1 | 1 | 1 | ... |
2727
| EventTime: | 2016-05-18 05:19:20 | 2016-05-18 08:10:20 | 2016-05-18 07:38:00 | ... |
2828

29-
These examples only show the order that data is arranged in.
30-
The values from different columns are stored separately, and data from the same column is stored together.
29+
これらの例は、データが配置される順序のみを示しています。
30+
異なる列の値は別々に保存され、同じ列のデータは一緒に保存されます。
3131

32-
Examples of a column-oriented DBMS: Vertica, Paraccel (Actian Matrix and Amazon Redshift), Sybase IQ, Exasol, Infobright, InfiniDB, MonetDB (VectorWise and Actian Vector), LucidDB, SAP HANA, Google Dremel, Google PowerDrill, Druid, and kdb+.
32+
列指向DBMSの例:Vertica, Paraccel (Actian Matrix and Amazon Redshift), Sybase IQ, Exasol, Infobright, InfiniDB, MonetDB (VectorWise and Actian Vector), LucidDB, SAP HANA, Google Dremel, Google PowerDrill, Druid および kdb+
3333
{: .grey }
3434

35-
Different orders for storing data are better suited to different scenarios.
36-
The data access scenario refers to what queries are made, how often, and in what proportion; how much data is read for each type of query – rows, columns, and bytes; the relationship between reading and updating data; the working size of the data and how locally it is used; whether transactions are used, and how isolated they are; requirements for data replication and logical integrity; requirements for latency and throughput for each type of query, and so on.
35+
異なったデータ格納の順序は、異なったシナリオにより適します。
36+
データアクセスシナリオとは、クエリの実行内容、頻度、割合を指します。クエリで読み取られるの各種データの量(行、列、バイト)。データの読み取りと更新の関係。作業データのサイズとローカルでの使用方法。トランザクションが使用されるかどうか、およびそれらがどの程度分離されているか。データ複製と論理的整合性の要件。クエリの種類ごとの遅延とスループットの要件など。
3737

38-
The higher the load on the system, the more important it is to customize the system set up to match the requirements of the usage scenario, and the more fine grained this customization becomes. There is no system that is equally well-suited to significantly different scenarios. If a system is adaptable to a wide set of scenarios, under a high load, the system will handle all the scenarios equally poorly, or will work well for just one or few of possible scenarios.
38+
システムの負荷が高いほど、使用シナリオの要件に一致するようにセットアップされたシステムをカスタマイズすることがより重要になり、このカスタマイズはより細かくなります。大きく異なるシナリオに等しく適したシステムはありません。システムがさまざまなシナリオに適応可能である場合、高負荷下では、システムはすべてのシナリオを同等に不十分に処理するか、1つまたはいくつかの可能なシナリオでうまく機能します。
3939

40-
## Key Properties of the OLAP scenario
40+
## OLAPシナリオの主要なプロパティ
4141

42-
- The vast majority of requests are for read access.
43-
- Data is updated in fairly large batches (> 1000 rows), not by single rows; or it is not updated at all.
44-
- Data is added to the DB but is not modified.
45-
- For reads, quite a large number of rows are extracted from the DB, but only a small subset of columns.
46-
- Tables are "wide," meaning they contain a large number of columns.
47-
- Queries are relatively rare (usually hundreds of queries per server or less per second).
48-
- For simple queries, latencies around 50 ms are allowed.
49-
- Column values are fairly small: numbers and short strings (for example, 60 bytes per URL).
50-
- Requires high throughput when processing a single query (up to billions of rows per second per server).
51-
- Transactions are not necessary.
52-
- Low requirements for data consistency.
53-
- There is one large table per query. All tables are small, except for one.
54-
- A query result is significantly smaller than the source data. In other words, data is filtered or aggregated, so the result fits in a single server's RAM.
42+
- リクエストの大部分は読み取りアクセス用である。
43+
- データは、単一行ではなく、かなり大きなバッチ(> 1000行)で更新されます。または、まったく更新されない。
44+
- データはDBに追加されるが、変更されない。
45+
- 読み取りの場合、非常に多くの行がDBから抽出されるが、一部の列のみ。
46+
- テーブルは「幅が広く」、多数の列が含まれる。
47+
- クエリは比較的まれ(通常、サーバーあたり毎秒数百あるいはそれ以下の数のクエリ)。
48+
- 単純なクエリでは、約50ミリ秒の遅延が容認される。
49+
- 列の値はかなり小さく、数値や短い文字列(たとえば、URLごとに60バイト)。
50+
- 単一のクエリを処理する場合、高いスループットが必要(サーバーあたり毎秒最大数十億行)。
51+
- トランザクションは必要ない。
52+
- データの一貫性の要件が低い。
53+
- クエリごとに1つの大きなテーブルがある。 1つを除くすべてのテーブルは小さい。
54+
- クエリ結果は、ソースデータよりも大幅に小さくなる。つまり、データはフィルター処理または集計されるため、結果は単一サーバーのRAMに収まる。
5555

56-
It is easy to see that the OLAP scenario is very different from other popular scenarios (such as OLTP or Key-Value access). So it doesn't make sense to try to use OLTP or a Key-Value DB for processing analytical queries if you want to get decent performance. For example, if you try to use MongoDB or Redis for analytics, you will get very poor performance compared to OLAP databases.
56+
OLAPシナリオは、他の一般的なシナリオ(OLTPやKey-Valueアクセスなど)とは非常に異なることが容易にわかります。 したがって、まともなパフォーマンスを得るには、OLTPまたはKey-Value DBを使用して分析クエリを処理しようとするのは無意味です。 たとえば、分析にMongoDBまたはRedisを使用しようとすると、OLAPデータベースに比べてパフォーマンスが非常に低下します。
5757

58-
## Why Column-Oriented Databases Work Better in the OLAP Scenario
58+
## OLAPシナリオで列指向データベースがよりよく機能する理由
5959

60-
Column-oriented databases are better suited to OLAP scenarios: they are at least 100 times faster in processing most queries. The reasons are explained in detail below, but the fact is easier to demonstrate visually:
60+
列指向データベースは、OLAPシナリオにより適しています。ほとんどのクエリの処理が少なくとも100倍高速です。 理由を以下に詳しく説明しますが、その根拠は視覚的に簡単に説明できます:
6161

62-
**Row-oriented DBMS**
62+
**行指向DBMS**
6363

6464
![Row-oriented](images/row_oriented.gif#)
6565

66-
**Column-oriented DBMS**
66+
**列指向DBMS**
6767

6868
![Column-oriented](images/column_oriented.gif#)
6969

70-
See the difference?
70+
違いがわかりましたか?
7171

7272
### Input/output
7373

74-
1. For an analytical query, only a small number of table columns need to be read. In a column-oriented database, you can read just the data you need. For example, if you need 5 columns out of 100, you can expect a 20-fold reduction in I/O.
75-
2. Since data is read in packets, it is easier to compress. Data in columns is also easier to compress. This further reduces the I/O volume.
76-
3. Due to the reduced I/O, more data fits in the system cache.
74+
1. 分析クエリでは、少数のテーブル列のみを読み取る必要があります。列指向のデータベースでは、必要なデータのみを読み取ることができます。たとえば、100のうち5つの列が必要な場合、I/Oが20倍削減されることが期待できます。
75+
2. データはパケットで読み取られるため、圧縮が容易です。列のデータも圧縮が簡単です。これにより、I/Oボリュームがさらに削減されます。
76+
3. I/Oの削減により、より多くのデータがシステムキャッシュに収まります。
7777

78-
For example, the query "count the number of records for each advertising platform" requires reading one "advertising platform ID" column, which takes up 1 byte uncompressed. If most of the traffic was not from advertising platforms, you can expect at least 10-fold compression of this column. When using a quick compression algorithm, data decompression is possible at a speed of at least several gigabytes of uncompressed data per second. In other words, this query can be processed at a speed of approximately several billion rows per second on a single server. This speed is actually achieved in practice.
78+
たとえば、「各広告プラットフォームのレコード数をカウントする」クエリでは、1つの「広告プラットフォームID」列を読み取る必要がありますが、これは非圧縮では1バイトの領域を要します。トラフィックのほとんどが広告プラットフォームからのものではない場合、この列は少なくとも10倍の圧縮が期待できます。高速な圧縮アルゴリズムを使用すれば、1秒あたり少なくとも非圧縮データに換算して数ギガバイトの速度でデータを展開できます。つまり、このクエリは、単一のサーバーで1秒あたり約数十億行の速度で処理できます。この速度はまさに実際に達成されます。
7979

8080
<details markdown="1"><summary>Example</summary>
81-
```bash
81+
```
8282
$ clickhouse-client
8383
ClickHouse client version 0.0.52053.
8484
Connecting to localhost:9000.
8585
Connected to ClickHouse server version 0.0.52053.
86-
```
87-
```sql
88-
SELECT CounterID, count() FROM hits GROUP BY CounterID ORDER BY count() DESC LIMIT 20
89-
```
90-
```text
86+
87+
:) SELECT CounterID, count() FROM hits GROUP BY CounterID ORDER BY count() DESC LIMIT 20
88+
89+
SELECT
90+
CounterID,
91+
count()
92+
FROM hits
93+
GROUP BY CounterID
94+
ORDER BY count() DESC
95+
LIMIT 20
96+
9197
┌─CounterID─┬──count()─┐
9298
│ 114208 │ 56057344 │
9399
│ 115080 │ 51619590 │
@@ -110,23 +116,27 @@ SELECT CounterID, count() FROM hits GROUP BY CounterID ORDER BY count() DESC LIM
110116
│ 115079 │ 8837972 │
111117
│ 337234 │ 8205961 │
112118
└───────────┴──────────┘
119+
120+
20 rows in set. Elapsed: 0.153 sec. Processed 1.00 billion rows, 4.00 GB (6.53 billion rows/s., 26.10 GB/s.)
121+
122+
:)
113123
```
114124

115125
</details>
116126

117127
### CPU
118128

119-
Since executing a query requires processing a large number of rows, it helps to dispatch all operations for entire vectors instead of for separate rows, or to implement the query engine so that there is almost no dispatching cost. If you don't do this, with any half-decent disk subsystem, the query interpreter inevitably stalls the CPU.
120-
It makes sense to both store data in columns and process it, when possible, by columns.
129+
クエリを実行するには大量の行を処理する必要があるため、個別の行ではなくベクター全体のすべての操作をディスパッチするか、ディスパッチコストがほとんどないようにクエリエンジンを実装すると効率的です。 適切なディスクサブシステムでこれを行わないと、クエリインタープリターが必然的にCPUを失速させます。
130+
データを列に格納し、可能な場合は列ごとに処理することは理にかなっています。
121131

122-
There are two ways to do this:
132+
これを行うには2つの方法があります:
123133

124-
1. A vector engine. All operations are written for vectors, instead of for separate values. This means you don't need to call operations very often, and dispatching costs are negligible. Operation code contains an optimized internal cycle.
134+
1. ベクトルエンジン。 すべての操作は、個別の値ではなく、ベクトルに対して記述されます。 これは、オペレーションを頻繁に呼び出す必要がなく、ディスパッチコストが無視できることを意味します。 操作コードには、最適化された内部サイクルが含まれています。
125135

126-
2. Code generation. The code generated for the query has all the indirect calls in it.
136+
2. コード生成。 クエリ用に生成されたコードには、すべての間接的な呼び出しが含まれています。
127137

128-
This is not done in "normal" databases, because it doesn't make sense when running simple queries. However, there are exceptions. For example, MemSQL uses code generation to reduce latency when processing SQL queries. (For comparison, analytical DBMSs require optimization of throughput, not latency.)
138+
これは、単純なクエリを実行する場合には意味がないため、「通常の」データベースでは実行されません。 ただし、例外があります。 たとえば、MemSQLはコード生成を使用して、SQLクエリを処理する際の遅延を減らします。 (比較のために、分析DBMSではレイテンシではなくスループットの最適化が必要です。)
129139

130-
Note that for CPU efficiency, the query language must be declarative (SQL or MDX), or at least a vector (J, K). The query should only contain implicit loops, allowing for optimization.
140+
CPU効率のために、クエリ言語は宣言型(SQLまたはMDX)、または少なくともベクトル(J、K)でなければなりません。 クエリには、最適化を可能にする暗黙的なループのみを含める必要があります。
131141

132142
[Original article](https://clickhouse.yandex/docs/en/) <!--hide-->

docs/fa/getting_started/install.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ grep -q sse4_2 /proc/cpuinfo && echo "SSE 4.2 supported" || echo "SSE 4.2 not su
2020

2121
##ﺩﻮﺟﻮﻣ ﺐﺼﻧ ﯼﺎﻫ ﻪﻨﯾﺰﮔ
2222

23-
### نصب از طریق پکیج های Debian/Ubuntu
23+
### نصب از طریق پکیج های Debian/Ubuntu {#from-deb-packages}
2424

2525
در فایل `/etc/apt/sources.list` (یا در یک فایل جدا `/etc/apt/sources.list.d/clickhouse.list`)، Repo زیر را اضافه کنید:
2626

@@ -51,7 +51,7 @@ sudo apt-get install clickhouse-client clickhouse-server
5151

5252
ClickHouse دارای تنظیمات محدودیت دسترسی می باشد. این تنظیمات در فایل 'users.xml' (کنار 'config.xml') می باشد. به صورت پیش فرض دسترسی برای کاربر 'default' از همه جا بدون نیاز به پسورد وجود دارد. 'user/default/networks' را مشاهده کنید. برای اطلاعات بیشتر قسمت "تنظیمات فایل ها" را مشاهده کنید.
5353

54-
### RPM ﯼﺎﻫ ﻪﺘﺴﺑ ﺯﺍ
54+
### RPM ﯼﺎﻫ ﻪﺘﺴﺑ ﺯﺍ {#from-rpm-packages}
5555

5656
.ﺪﻨﮐ ﯽﻣ ﻪﯿﺻﻮﺗ ﺲﮐﻮﻨﯿﻟ ﺮﺑ ﯽﻨﺘﺒﻣ rpm ﺮﺑ ﯽﻨﺘﺒﻣ ﯼﺎﻫ ﻊﯾﺯﻮﺗ ﺮﯾﺎﺳ ﻭ CentOS ، RedHat ﯼﺍ
5757

@@ -78,7 +78,7 @@ sudo yum install clickhouse-server clickhouse-client
7878
.ﺪﻨﻨﮐ ﯽﻣ ﻩﺩﺎﻔﺘﺳﺍ ﻞﺧﺍﺩ ﺭﺩ "deb" ﯽﻤﺳﺭ ﯼﺎﻫ ﻪﺘﺴﺑ ﺯﺍ ﺮﯾﻭﺎﺼﺗ ﻦﯾﺍ .ﺪﯿﻨﮐ ﻝﺎﺒﻧﺩ ﺍﺭ (/ht
7979

8080

81-
### نصب از طریق Source
81+
### نصب از طریق Source {#from-sources}
8282

8383
برای Compile، دستورالعمل های فایل build.md را دنبال کنید:
8484

@@ -108,7 +108,7 @@ Server: dbms/programs/clickhouse-server
108108

109109
به مسیر لاگ ها در تنظیمات سرور توجه کنید (src/dbms/programs/config.xml).
110110

111-
### روش های دیگر نصب
111+
### روش های دیگر نصب {#from-docker-image}
112112

113113
Docker image: <https://hub.docker.com/r/yandex/clickhouse-server/>
114114

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../en/getting_started/tutorial.md

docs/ja/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../CHANGELOG.md

docs/ja/data_types/array.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../en/data_types/array.md

docs/ja/data_types/boolean.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../en/data_types/boolean.md

docs/ja/data_types/date.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../en/data_types/date.md

docs/ja/data_types/datetime.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../en/data_types/datetime.md

0 commit comments

Comments
 (0)