You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The **Shared database engine** works in conjunction with Shared Catalog to manage databases whose tables use **stateless table engines** such as `SharedMergeTree`. These table engines do not write persistent state to disk and are compatible with dynamic compute environments.
35
35
36
36
Shared database engine builds on and improves the behavior of the Replicated database engine while offering additional guarantees and operational benefits.
37
37
38
-
### Key Benefits
38
+
### Key benefits {#key-benefits}
39
39
40
40
-**Atomic CREATE TABLE ... AS SELECT**
41
41
Table creation and data insertion are executed atomically—either the entire operation completes, or the table is not created at all.
@@ -62,7 +62,7 @@ Shared database engine builds on and improves the behavior of the Replicated dat
62
62
-**Centralized, versioned metadata state**
63
63
Shared Catalog stores a single source of truth in ZooKeeper. When a replica starts, it fetches the latest state and applies the diff to reach consistency. During query execution, the system can wait for other replicas to reach at least the required version of metadata to ensure correctness.
64
64
65
-
## Usage in ClickHouse Cloud
65
+
## Usage in ClickHouse Cloud {#usage-in-clickhouse-cloud}
66
66
67
67
For end users, using Shared Catalog and the Shared database engine requires no additional configuration. Database creation is the same as always:
68
68
@@ -72,7 +72,7 @@ CREATE DATABASE my_database;
72
72
73
73
ClickHouse Cloud automatically assigns the Shared database engine to databases. Any tables created within such a database using stateless engines will automatically benefit from Shared Catalog’s replication and coordination capabilities.
74
74
75
-
## Summary
75
+
## Summary {#summary}
76
76
77
77
Shared Catalog and the Shared database engine provide:
0 commit comments