From e5548fb99eb97f6e4e2c04e1faf87b7fa4f2483d Mon Sep 17 00:00:00 2001
From: Ivan Blinkov
After installation proceed to tutorial or full
+ After installation proceed to tutorial or full
documentation.
+ClickHouse documentation has been moved to new location and the rest of this page is considered deprecated. ⚖ When set of possible values is determined and known to be small. (E.g. OS name, browser
vendors etc.) it's recommended to use Enums or numbers to improve performance.
@@ -445,9 +445,10 @@ ENGINE = MergeTree(FlightDate, (Year, FlightDate), 8192);
which DateTime handling functions may be not efficient. ✯ ClickHouse functions
+ href="docs/en/functions/date_time_functions.html">functions
for operating with DateTime fields are well-optimized so such redundancy is not required. Anyway much
- columns is not a reason to worry — ClickHouse is a column-oriented
+ columns is not a reason to worry — ClickHouse is a column-oriented
DBMS. This allows you to have as much fields as you need. Hundreds of columns in a table is fine for
ClickHouse. To enable replication ZooKeeper is required. ClickHouse will take care
- of data consistency on all replicas and run restore procedure after failure automatically. It's recommended to
- deploy ZooKeeper cluster to separate servers. To enable replication ZooKeeper is required.
+ ClickHouse will take care of data consistency on all replicas and run restore procedure after failure
+ automatically. It's recommended to deploy ZooKeeper cluster to separate servers. ZooKeeper is not a requirement — in some simple cases you can duplicate the data by writing it into all the
replicas from your application code. This approach is not recommended — in this case ClickHouse is not able to
@@ -760,7 +761,7 @@ ENGINE = ReplicatedMergeTree(
(Year, FlightDate),
8192);
- Here we use ReplicatedMergeTree
+ Here we use ReplicatedMergeTree
table type. In parameters we specify ZooKeeper path containing shard and replica identifiers.
+Go to current ClickHouse documentation
+ INSERT INTO ontime_replica SELECT * FROM ontime;
@@ -790,10 +791,6 @@ ENGINE = ReplicatedMergeTree(