id stringlengths 36 36 | document stringlengths 3 3k | metadata stringlengths 23 69 | embeddings listlengths 384 384 |
|---|---|---|---|
27f7b894-e6d8-4bc1-b9a8-0e425b961ffa | |
Compliance
| ClickHouse Cloud compliance includes CCPA, EU-US DPF, GDPR, HIPAA, ISO 27001, ISO 27001 SoA, PCI DSS, SOC2. ClickHouse Cloud's security, availability, processing integrity, and confidentiality processes are all independently audited. Details: trust.clickhouse.com. ... | {"source_file": "01_what_is.md"} | [
-0.07825953513383865,
-0.06420538574457169,
-0.03372083976864815,
-0.028700603172183037,
0.005075742490589619,
0.019294923171401024,
-0.006321028806269169,
-0.01643775962293148,
-0.030695205554366112,
0.025067446753382683,
0.04144710674881935,
0.04333322495222092,
0.015710528939962387,
-0.... |
9d4b8897-7786-42dd-96cd-05b86a83f1d5 | sidebar_label: 'Overview'
sidebar_position: 1
slug: /integrations/migration/overview
keywords: ['clickhouse', 'migrate', 'migration', 'migrating', 'data']
title: 'Migrating Data into ClickHouse'
description: 'Page describing the options available for migrating data into ClickHouse'
doc_type: 'guide'
Migrating data ... | {"source_file": "01_overview.md"} | [
0.040100082755088806,
-0.10443330556154251,
-0.011991520412266254,
0.012157903984189034,
0.05444922670722008,
-0.005334498360753059,
-0.013927607797086239,
-0.021561162546277046,
-0.06458119302988052,
0.041471563279628754,
0.04159703850746155,
-0.03588191419839859,
0.07979612797498703,
-0.... |
3a94f4b9-cba0-4d6e-9303-5664aeacbe0b | title: 'BigQuery vs ClickHouse Cloud'
slug: /migrations/bigquery/biquery-vs-clickhouse-cloud
description: 'How BigQuery differs from ClickHouse Cloud'
keywords: ['BigQuery']
show_related_blogs: true
sidebar_label: 'Overview'
doc_type: 'guide'
import bigquery_1 from '@site/static/images/migrations/bigquery-1.png';
i... | {"source_file": "01_overview.md"} | [
0.01986873894929886,
-0.04035619646310806,
0.01299323420971632,
0.004236556123942137,
0.07996582239866257,
-0.08199003338813782,
0.016749035567045212,
-0.04796775057911873,
0.05346928909420967,
0.018619392067193985,
0.007783421315252781,
0.029714494943618774,
0.05450568348169327,
-0.023481... |
ab13b3ca-783a-4818-937d-1623410f8fb1 | Furthermore, similar to BigQuery quotas, ClickHouse Cloud offers concurrency control, memory usage limits, and I/O scheduling, enabling users to isolate queries into workload classes. By setting limits on shared resources (CPU cores, DRAM, disk and network I/O) for specific workload classes, it ensures these queries do... | {"source_file": "01_overview.md"} | [
-0.00752768712118268,
0.013545993715524673,
-0.027262737974524498,
0.03669169172644615,
-0.027243822813034058,
0.004704357124865055,
0.036412712186574936,
-0.022713469341397285,
0.060565635561943054,
0.059057608246803284,
-0.041634172201156616,
0.08807079493999481,
0.011824911460280418,
-0... |
6501c3af-73d8-4605-bbe0-1ba0d6e12bdd | | BigQuery | ClickHouse |
|----------|-------------------------------------------------------------------------------------------------------------------... | {"source_file": "01_overview.md"} | [
0.0648697093129158,
0.04708139970898628,
-0.08462212979793549,
-0.03867194056510925,
-0.09124855697154999,
-0.018531884998083115,
0.03948653116822243,
0.005840811412781477,
-0.038601137697696686,
0.004547088406980038,
-0.043893780559301376,
-0.06296706944704056,
0.009972359985113144,
-0.05... |
292e1b2d-64ce-438b-85be-c4511d3a085d | When presented with multiple options for ClickHouse types, consider the actual range of the data and pick the lowest required. Also, consider utilizing
appropriate codecs
for further compression.
Query acceleration techniques {#query-acceleration-techniques}
Primary and Foreign keys and Primary index {#primary-an... | {"source_file": "01_overview.md"} | [
0.021002070978283882,
0.03408258780837059,
-0.025905711576342583,
-0.009598856791853905,
-0.02756623923778534,
-0.03292761370539665,
-0.04409443214535713,
-0.0019383231410756707,
0.027905382215976715,
0.017509914934635162,
-0.014226196333765984,
0.04031771421432495,
0.01641022600233555,
-0... |
1478489c-2d67-4785-b4c5-73f1f531ccce | BigQuery recently introduced
vector indexes
as a Pre-GA feature. Likewise, ClickHouse has experimental support for
indexes to speed up
vector search use cases.
Partitioning {#partitioning}
Like BigQuery, ClickHouse uses table partitioning to enhance the performance and manageability of large tables by dividing ... | {"source_file": "01_overview.md"} | [
-0.0022833305411040783,
0.04094558209180832,
-0.01435762643814087,
0.044604722410440445,
0.06881776452064514,
-0.05789628624916077,
-0.02335323579609394,
-0.017070313915610313,
0.0018126163631677628,
0.04137090593576431,
-0.04153332859277725,
0.06995166838169098,
0.007220391184091568,
-0.0... |
367296d3-45c1-4dbe-9de1-c709b5bb2465 | In ClickHouse, materialized views are incrementally updated. This incremental update mechanism provides high scalability and low computing costs: incrementally updated materialized views are engineered especially for scenarios where base tables contain billions or trillions of rows. Instead of querying the ever-growing... | {"source_file": "01_overview.md"} | [
0.013604055158793926,
-0.046597640961408615,
-0.006583022885024548,
-0.007787833455950022,
-0.033539969474077225,
-0.03828304260969162,
-0.05037318170070648,
0.00032912121969275177,
0.09367702156305313,
0.04130515083670616,
-0.01405602227896452,
0.04953133314847946,
-0.010226288810372353,
... |
8959c29f-57f6-4f52-9160-03c1d2ae5119 | Arrays {#arrays}
Compared to BigQuery's 8 array functions, ClickHouse has over 80
built-in array functions
for modeling and solving a wide range of problems elegantly and simply.
A typical design pattern in ClickHouse is to use the
groupArray
aggregate function to (temporarily) transform specific row values of ... | {"source_file": "01_overview.md"} | [
0.04365590587258339,
0.029933970421552658,
-0.02104967087507248,
0.006138595286756754,
-0.06718981266021729,
-0.06534271687269211,
0.015154823660850525,
-0.059964463114738464,
-0.03169181942939758,
-0.00682320911437273,
-0.042062073945999146,
0.03701591491699219,
-0.0071177552454173565,
-0... |
e2026e9a-9387-44f7-8d20-73e7b24ce9a9 | BigQuery
GENERATE_DATE_ARRAY
function
```sql
SELECT GENERATE_DATE_ARRAY('2016-10-05', '2016-10-08') AS example;
/
--------------------------------------------------
| example |
+--------------------------------------------------+
| [2016-10-05, 2016-10-06, 2016-10-07,... | {"source_file": "01_overview.md"} | [
0.05966347083449364,
0.055014658719301224,
-0.0039434186182916164,
-0.00665196031332016,
-0.08506076782941818,
0.027673963457345963,
-0.038336385041475296,
-0.0024172854609787464,
-0.10065056383609772,
-0.02504180185496807,
0.015160486102104187,
-0.09148240089416504,
-0.006006465293467045,
... |
29465844-6cc7-4f39-ac09-f6e6721cd6a8 | ClickHouse
arrayFilter
function
sql
WITH Sequences AS
(
SELECT [0, 1, 1, 2, 3, 5] AS some_numbers
UNION ALL
SELECT [2, 4, 8, 16, 32] AS some_numbers
UNION ALL
SELECT [5, 10] AS some_numbers
)
SELECT arrayMap(x -> (x * 2), arrayFilter(x -> (x < 5), some_numbers)) AS d... | {"source_file": "01_overview.md"} | [
0.042989060282707214,
-0.00373237207531929,
-0.009495527483522892,
-0.06248972937464714,
-0.038025014102458954,
0.03451671823859215,
0.0363677516579628,
-0.06846656650304794,
-0.09461497515439987,
-0.002717676805332303,
-0.021336032077670097,
0.013668238185346127,
0.04211762174963951,
-0.0... |
4ba1bfa7-6efe-4ff0-aa68-a8fe7b532112 | sidebar_label: 'Loading data'
title: 'Loading data from BigQuery to ClickHouse'
slug: /migrations/bigquery/loading-data
description: 'How to load data from BigQuery to ClickHouse'
keywords: ['migrate', 'migration', 'migrating', 'data', 'etl', 'elt', 'BigQuery']
doc_type: 'guide'
This guide is compatible with ClickH... | {"source_file": "03_loading-data.md"} | [
0.04607338830828667,
-0.036184053868055344,
0.04071073979139328,
0.02040959894657135,
0.033230241388082504,
-0.05595133453607559,
-0.09849239885807037,
-0.0515974685549736,
-0.0478275828063488,
0.03475554659962654,
0.034209392964839935,
-0.05255492031574249,
-0.01708471029996872,
-0.145242... |
a743e39c-b1c2-4278-90e2-404e18a25013 | In the above query, we export our BigQuery table to the
Parquet data format
. We also have a
*
character in our
uri
parameter. This ensures the output is sharded into multiple files, with a numerically increasing suffix, should the export exceed 1GB of data.
This approach has a number of advantages:
Google a... | {"source_file": "03_loading-data.md"} | [
-0.021924953907728195,
-0.009380321018397808,
-0.04170508682727814,
-0.05983287841081619,
-0.038715120404958725,
-0.06557226181030273,
-0.0097738578915596,
0.0318324938416481,
-0.057283513247966766,
0.07043857127428055,
-0.03556361421942711,
0.01159130223095417,
-0.02096799947321415,
-0.10... |
fa1d7350-4657-4d3a-af54-f857b6a30036 | Alternatively, you can
SET input_format_null_as_default=1
and any missing or NULL values will be replaced by default values for their respective columns, if those defaults are specified.
:::
Testing successful data export {#3-testing-successful-data-export}
To test whether your data was properly inserted, simply ... | {"source_file": "03_loading-data.md"} | [
0.06781572848558426,
-0.0357355959713459,
-0.033110976219177246,
0.024852070957422256,
0.03787064552307129,
0.012327195145189762,
-0.07401509582996368,
0.018899329006671906,
-0.08866553753614426,
0.048063576221466064,
0.021661557257175446,
-0.052063971757888794,
-0.011127421632409096,
-0.1... |
e4169392-cb75-4be3-b57f-2eee1370b0f2 | title: 'Migrating from BigQuery to ClickHouse Cloud'
slug: /migrations/bigquery/migrating-to-clickhouse-cloud
description: 'How to migrate your data from BigQuery to ClickHouse Cloud'
keywords: ['BigQuery']
show_related_blogs: true
sidebar_label: 'Migration guide'
doc_type: 'guide'
import bigquery_2 from '@site/sta... | {"source_file": "02_migrating-to-clickhouse-cloud.md"} | [
0.0621604397892952,
-0.004663724452257156,
0.029138261452317238,
0.0017545176669955254,
0.07164928317070007,
-0.03285817429423332,
-0.026079773902893066,
-0.04496479034423828,
-0.06696279346942902,
0.03299225866794586,
0.056470371782779694,
-0.03026406653225422,
0.0385955311357975,
-0.0880... |
281e6c88-df31-4956-b9e7-d8b622da9842 | Bulk loading via Google Cloud Storage (GCS) {#bulk-loading-via-google-cloud-storage-gcs}
BigQuery supports exporting data to Google's object store (GCS). For our example data set:
Export the 7 tables to GCS. Commands for that are available
here
.
Import the data into ClickHouse Cloud. For that we can use... | {"source_file": "02_migrating-to-clickhouse-cloud.md"} | [
-0.08189480006694794,
-0.06494633108377457,
-0.018848491832613945,
-0.008930893614888191,
-0.0038799147587269545,
-0.06352975964546204,
-0.024584190919995308,
-0.056575875729322433,
-0.020699720829725266,
0.08303827792406082,
-0.02504984475672245,
-0.04024720564484596,
0.06519139558076859,
... |
da2eb1e0-2b96-4cd5-8ad6-c487d2e3de55 | Adhering to this principle, we focus on the main
posts
table. The BigQuery schema for this is shown below:
sql
CREATE TABLE stackoverflow.posts (
id INTEGER,
posttypeid INTEGER,
acceptedanswerid STRING,
creationdate TIMESTAMP,
score INTEGER,
viewcount INTEGER,
body STRING,
owneruseri... | {"source_file": "02_migrating-to-clickhouse-cloud.md"} | [
0.0642695501446724,
0.015608672983944416,
0.02669355273246765,
0.05243663862347603,
-0.016683558002114296,
-0.017609527334570885,
-0.01405460387468338,
0.027483835816383362,
-0.04143398627638817,
0.0744306668639183,
-0.001759052975103259,
-0.028487304225564003,
-0.0027184325736016035,
-0.0... |
293ead35-0ae2-4be5-b20b-ec799de25bbf | As described
here
, like in BigQuery, ClickHouse doesn't enforce uniqueness for a table's primary key column values.
Similar to clustering in BigQuery, a ClickHouse table's data is stored on disk ordered by the primary key column(s). This sort order is utilized by the query optimizer to prevent resorting, minimize m... | {"source_file": "02_migrating-to-clickhouse-cloud.md"} | [
0.010893031023442745,
-0.019049642607569695,
0.005971184000372887,
0.013249137438833714,
0.016018882393836975,
-0.0648634135723114,
-0.002306975657120347,
-0.04256123676896095,
0.05862798914313316,
-0.002676363568753004,
0.010708948597311974,
0.09492091834545135,
0.01792639121413231,
-0.08... |
494a0d6f-7a10-4196-9983-65212c442ce3 | For the considerations and steps in choosing an ordering key, using the posts table as an example, see
here
.
Data modeling techniques {#data-modeling-techniques}
We recommend users migrating from BigQuery read
the guide for modeling data in ClickHouse
. This guide uses the same Stack Overflow dataset and explore... | {"source_file": "02_migrating-to-clickhouse-cloud.md"} | [
0.03484991565346718,
0.031111832708120346,
0.04115862771868706,
-0.009941265918314457,
-0.034058429300785065,
0.016444705426692963,
-0.04214516654610634,
0.028180422261357307,
-0.016415024176239967,
0.02833983302116394,
-0.03899377956986427,
0.07266116887331009,
0.03224510699510574,
-0.037... |
e2a5c90d-2997-41c5-bfbb-828589df6d5a | Applications {#applications}
Partitioning in ClickHouse has similar applications as in BigQuery but with some subtle differences. More specifically:
Data management
- In ClickHouse, users should principally consider partitioning to be a data management feature, not a query optimization technique. By separating d... | {"source_file": "02_migrating-to-clickhouse-cloud.md"} | [
-0.03243577480316162,
-0.017833752557635307,
0.02684309147298336,
0.0349835567176342,
0.03065555915236473,
-0.06755069643259048,
0.03671121224761009,
0.035706859081983566,
0.005960630718618631,
0.019027790054678917,
-0.02449219301342964,
0.05601416900753975,
0.032884757965803146,
-0.021525... |
361fa44d-6518-4181-ab6e-c322c92c6ec5 | Internally, ClickHouse
creates parts
for inserted data. As more data is inserted, the number of parts increases. In order to prevent an excessively high number of parts, which will degrade query performance (because there are more files to read), parts are merged together in a background asynchronous process. If the ... | {"source_file": "02_migrating-to-clickhouse-cloud.md"} | [
-0.036104071885347366,
-0.06385745853185654,
-0.015579413622617722,
0.008174868300557137,
-0.024976078420877457,
-0.07499881833791733,
-0.011049600318074226,
-0.009459919296205044,
0.07406436651945114,
-0.004598159343004227,
-0.015351807698607445,
0.024384941905736923,
0.0719793513417244,
... |
3bd5e2c7-b797-4079-b9f4-f3a62314f698 | If the projection is created via an
ALTER
command, the creation is asynchronous
when the
MATERIALIZE PROJECTION
command is issued. Users can confirm the progress
of this operation with the following query, waiting for
is_done=1
.
``sql
SELECT
parts_to_do,
is_done,
latest_fail_reason
FROM system.muta... | {"source_file": "02_migrating-to-clickhouse-cloud.md"} | [
-0.058302611112594604,
-0.04970436543226242,
-0.029563987627625465,
0.13821975886821747,
0.03189688175916672,
-0.053529635071754456,
0.048556502908468246,
0.00603770837187767,
0.014827598817646503,
0.07303216308355331,
-0.07000374048948288,
0.012518016621470451,
0.09251599758863449,
-0.031... |
cf8085df-f959-409d-b425-8086b1593abe | We recommend using projections when:
A complete reordering of the data is required. While the expression in the projection can, in theory, use a
GROUP BY,
materialized views are more effective for maintaining aggregates. The query optimizer is also more likely to exploit projections that use a simple reordering, ... | {"source_file": "02_migrating-to-clickhouse-cloud.md"} | [
0.00572435325011611,
-0.03031580150127411,
0.008289671503007412,
0.037353333085775375,
-0.031160147860646248,
0.007702838629484177,
0.0027574801351875067,
-0.007974942214787006,
0.007898824289441109,
0.028821274638175964,
-0.029435377568006516,
0.01615930162370205,
0.05215940624475479,
-0.... |
bc711afd-7702-4ba4-b044-55c45c0c562b | Row 1:
ββββββ
Year: 2008
MostViewedQuestionTitle: How to find the index for a given item in a list?
MaxViewCount: 6316987
Row 2:
ββββββ
Year: 2009
MostViewedQuestionTitle: How do I undo the most recent local commits in Git?
MaxViewCount: 13962748
...
Row... | {"source_file": "02_migrating-to-clickhouse-cloud.md"} | [
0.03159259259700775,
-0.024197528138756752,
0.001857551047578454,
0.028227977454662323,
0.03259146958589554,
-0.06371217966079712,
-0.008798912167549133,
-0.025670034810900688,
-0.03405406326055527,
0.10932222753763199,
0.02308090403676033,
-0.0035814421717077494,
-0.014299173839390278,
-0... |
c8af21f5-828e-4d67-b64f-9780079282a5 | slug: /migrations/bigquery
title: 'BigQuery'
pagination_prev: null
pagination_next: null
description: 'Landing page for the BigQuery migrations section'
keywords: ['BigQuery', 'migration']
doc_type: 'landing-page'
In this section of the docs, learn more about the similarities and differences between BigQuery and Cl... | {"source_file": "index.md"} | [
0.08202715218067169,
0.0028494675643742085,
0.047455478459596634,
-0.021939679980278015,
0.005651269573718309,
-0.01119638979434967,
-0.08940514922142029,
-0.05788157135248184,
-0.021115366369485855,
0.043348174542188644,
0.030971458181738853,
-0.0212454441934824,
0.01630740985274315,
-0.1... |
e679d561-90f1-4601-9d33-d2e25bdda080 | sidebar_label: 'Overview'
slug: /migrations/redshift-overview
description: 'Migrating from Amazon Redshift to ClickHouse'
keywords: ['Redshift']
title: 'Comparing ClickHouse Cloud and Amazon Redshift'
doc_type: 'guide'
Amazon Redshift to ClickHouse migration
This document provides an introduction to migrating d... | {"source_file": "01_overview.md"} | [
-0.010837755165994167,
-0.021056372672319412,
-0.03235551342368126,
0.053927984088659286,
0.03794616088271141,
-0.03574342280626297,
-0.017127159982919693,
-0.03617115318775177,
0.017269624397158623,
0.015451798215508461,
-0.01597757078707218,
0.016206204891204834,
0.028719410300254822,
-0... |
ce2ae813-e4dc-43f5-a62c-58d50907af24 | | Advantage | Description ... | {"source_file": "01_overview.md"} | [
0.014558879658579826,
0.0710616484284401,
-0.007947787642478943,
-0.02907976321876049,
-0.04150828346610069,
0.05946654453873634,
0.0205544400960207,
0.02871936745941639,
0.005983277689665556,
-0.08928714692592621,
0.016056938096880913,
-0.006470134016126394,
-0.0030778106302022934,
-0.062... |
59347e2b-9065-4af1-9304-f02b45f03dae | sidebar_label: 'Migration guide'
slug: /migrations/redshift/migration-guide
description: 'Migrating from Amazon Redshift to ClickHouse'
keywords: ['Redshift']
title: 'Amazon Redshift to ClickHouse migration guide'
doc_type: 'guide'
import MigrationGuide from '@site/docs/integrations/data-ingestion/redshift/_snippet... | {"source_file": "02_migration_guide.md"} | [
0.03791920095682144,
-0.058049265295267105,
0.004904326517134905,
0.03761988878250122,
0.11747418344020844,
0.017048191279172897,
0.01178406085819006,
-0.017470190301537514,
-0.0993935838341713,
-0.052846960723400116,
0.013432038947939873,
-0.02999887987971306,
-0.014656472951173782,
-0.09... |
5287aa8f-19dd-40a3-8369-0aca511f9c02 | sidebar_label: 'SQL translation reference'
slug: /migrations/redshift/sql-translation-reference
description: 'SQL translation reference for Amazon Redshift to ClickHouse'
keywords: ['Redshift']
title: 'Amazon Redshift SQL translation guide'
doc_type: 'reference'
Amazon Redshift SQL translation guide
Data types {#... | {"source_file": "03_sql_translation_reference.md"} | [
0.022543467581272125,
-0.0806465893983841,
-0.05602394416928291,
0.02258564531803131,
-0.0324726477265358,
0.012229804880917072,
0.04833013564348221,
0.0033574379049241543,
-0.02193179354071617,
-0.08508096635341644,
-0.007030396722257137,
0.006667804438620806,
0.027947256341576576,
-0.066... |
4c3e2908-a191-431d-968f-056cd3ee86d5 | | Redshift | ClickHouse ... | {"source_file": "03_sql_translation_reference.md"} | [
0.004592535085976124,
-0.08084062486886978,
0.032714784145355225,
0.008587392047047615,
-0.039727676659822464,
0.0038235599640756845,
-0.01811417192220688,
-0.011897902004420757,
0.01283227652311325,
-0.0899566262960434,
0.04070552438497543,
-0.05645386874675751,
-0.03622347488999367,
-0.1... |
2954b475-ef13-4cd0-acd7-d7473d096bfb | |
REAL
|
Float32
... | {"source_file": "03_sql_translation_reference.md"} | [
0.016668282449245453,
0.025308288633823395,
-0.09113425761461258,
0.0405694879591465,
-0.06729412078857422,
0.03267672285437584,
-0.03774355724453926,
0.04794556647539139,
-0.04241276904940605,
0.03373485803604126,
0.06967554241418839,
-0.12124186009168625,
0.03887874633073807,
0.005223080... |
d15830ae-6eb0-4771-bb1a-5896819a44e4 | |
TIMESTAMPTZ
|
DateTime
,
DateTime64
... | {"source_file": "03_sql_translation_reference.md"} | [
0.0033434289507567883,
-0.018575148656964302,
-0.04080720618367195,
0.002395969582721591,
-0.030610213056206703,
-0.04290197417140007,
-0.03879731521010399,
0.014898487366735935,
-0.06296847015619278,
-0.018231378868222237,
-0.01668507233262062,
-0.06798572838306427,
0.024028053507208824,
... |
728da327-4524-4272-99d9-daf4a84f8db6 | ClickHouse additionally supports unsigned integers with extended ranges i.e.
UInt8
,
UInt32
,
UInt32
and
UInt64
.
*
ClickHouseβs String type is unlimited by default but can be constrained to specific lengths using
Constraints
.
DDL syntax {#compression}
Sorting keys {#sorting-keys}
Both ClickHouse and Red... | {"source_file": "03_sql_translation_reference.md"} | [
0.00959246139973402,
-0.08408327400684357,
-0.02408929169178009,
-0.000313106516841799,
-0.0690520852804184,
-0.036583881825208664,
-0.0071210856549441814,
0.006767187267541885,
-0.025647200644016266,
-0.018376609310507774,
0.007649346254765987,
0.044408902525901794,
-0.0029452962335199118,
... |
04a99cb8-c36f-430a-8a58-857094721b58 | sidebar_label: 'Using clickhouse-local'
keywords: ['clickhouse', 'migrate', 'migration', 'migrating', 'data', 'etl', 'elt', 'clickhouse-local', 'clickhouse-client']
slug: /cloud/migration/clickhouse-local
title: 'Migrating to ClickHouse using clickhouse-local'
description: 'Guide showing how to migrate to ClickHouse us... | {"source_file": "01_clickhouse-local-etl.md"} | [
0.06076716631650925,
0.006333462428301573,
-0.008767868392169476,
0.015738533809781075,
0.08513668924570084,
0.02308567613363266,
0.04481407254934311,
0.0017626691842451692,
-0.08452808111906052,
0.04331102967262268,
0.08924354612827301,
-0.03177759796380997,
0.028284376487135887,
-0.06109... |
77b6fe52-6b0f-46de-b3e5-25b57384e687 | Installing clickhouse-local {#installing-clickhouse-local}
You need a host machine for
clickhouse-local
that has network access to both your current source database system and your ClickHouse Cloud target service.
On that host machine, download the appropriate build of
clickhouse-local
based on your computer's ... | {"source_file": "01_clickhouse-local-etl.md"} | [
0.07162745296955109,
-0.07585223019123077,
-0.006513649597764015,
-0.07376419007778168,
0.018332835286855698,
-0.027421072125434875,
-0.01573275774717331,
-0.07386436313390732,
-0.004270123317837715,
0.03531736508011818,
0.04938673973083496,
-0.04495745897293091,
0.003978286404162645,
-0.0... |
78321538-569d-4282-9701-031be09ebf70 | Example 2: Migrating from MySQL to ClickHouse Cloud with the JDBC bridge {#example-2-migrating-from-mysql-to-clickhouse-cloud-with-the-jdbc-bridge}
We will use the
JDBC integration table engine
(created on-the-fly by the
jdbc table function
) together with the
ClickHouse JDBC Bridge
and the MySQL JDBC driver for... | {"source_file": "01_clickhouse-local-etl.md"} | [
-0.004772596526890993,
-0.06860381364822388,
-0.05038381740450859,
0.02233508974313736,
-0.07205593585968018,
-0.02438076213002205,
0.041136402636766434,
0.005305563565343618,
-0.0585131011903286,
0.01568109355866909,
-0.027144931256771088,
-0.03987656906247139,
0.12385980039834976,
-0.062... |
054e6abb-417a-445b-a441-d1f5734ec003 | title: 'Using object storage'
description: 'Moving data from object storage to ClickHouse Cloud'
keywords: ['object storage', 's3', 'azure blob', 'gcs', 'migration']
slug: /integrations/migration/object-storage-to-clickhouse
doc_type: 'guide'
import Image from '@theme/IdealImage';
import object_storage_01 from '@si... | {"source_file": "03_object-storage-to-clickhouse.md"} | [
0.011972134932875633,
-0.08492940664291382,
-0.06161148473620415,
0.020045368000864983,
0.04832414910197258,
0.013114295899868011,
0.046285297721624374,
-0.03884432837367058,
-0.024940408766269684,
0.09885934740304947,
0.013135193847119808,
-0.019412780180573463,
0.11431349068880081,
-0.00... |
ae9fa39c-46af-47df-942f-95868e63764f | sidebar_label: 'Using a third-party ETL tool'
keywords: ['clickhouse', 'migrate', 'migration', 'migrating', 'data', 'etl', 'elt', 'clickhouse-local', 'clickhouse-client']
slug: /cloud/migration/etl-tool-to-clickhouse
title: 'Using a third-party ETL Tool'
description: 'Page describing how to use a 3rd-party ETL tool wit... | {"source_file": "02_etl-tool-to-clickhouse.md"} | [
-0.06618113070726395,
-0.03188714385032654,
-0.017499178647994995,
-0.008763398975133896,
0.12403231859207153,
-0.0440409816801548,
0.03833503648638725,
-0.005871195811778307,
-0.040805354714393616,
0.002919941209256649,
0.07926557958126068,
-0.05822078138589859,
0.09621971845626831,
-0.09... |
f162ffcf-dae3-4a06-8e0b-a3e8635ab08a | sidebar_label: 'ClickHouse OSS'
slug: /cloud/migration/clickhouse-to-cloud
title: 'Migrating between self-managed ClickHouse and ClickHouse Cloud'
description: 'Page describing how to migrate between self-managed ClickHouse and ClickHouse Cloud'
doc_type: 'guide'
keywords: ['migration', 'ClickHouse Cloud', 'OSS', 'Migr... | {"source_file": "01_clickhouse-to-cloud.md"} | [
0.014817888848483562,
-0.04882288724184036,
0.009532254189252853,
-0.004610508680343628,
0.10537461191415787,
-0.029289226979017258,
0.004529528319835663,
-0.029859352856874466,
-0.07017794251441956,
0.05278310552239418,
0.11436934769153595,
-0.0144920963793993,
0.026094092056155205,
-0.02... |
9a906230-4605-4e80-9873-cdf073338241 | On the source ClickHouse system (the system that currently hosts the data) {#on-the-source-clickhouse-system-the-system-that-currently-hosts-the-data}
Add a read only user that can read the source table (
db.table
in this example)
sql
CREATE USER exporter
IDENTIFIED WITH SHA256_PASSWORD BY 'password-here'
SETTING... | {"source_file": "01_clickhouse-to-cloud.md"} | [
-0.024999601766467094,
-0.09704513847827911,
-0.09696996212005615,
0.013442691415548325,
-0.04684655740857124,
-0.05906296148896217,
0.034073565155267715,
-0.05258218199014664,
-0.022303910925984383,
0.0913325622677803,
0.02423485927283764,
-0.04890173301100731,
0.12741538882255554,
-0.090... |
9d8d3602-a72c-40b6-b955-14a249311750 | There are a few steps in the migration:
1. Identify one ClickHouse Cloud service to be the
source
, and the other as the
destination
1. Add a read-only user to the source service
1. Duplicate the source table structure on the destination service
1. Temporarily allow IP access to the source service
1. Copy the data f... | {"source_file": "01_clickhouse-to-cloud.md"} | [
-0.002482747659087181,
-0.1228165552020073,
-0.05579765886068344,
-0.06585358083248138,
-0.04277249425649643,
0.0030609669629484415,
0.06662275642156601,
-0.10597053915262222,
-0.04361511021852493,
0.046476271003484726,
0.0037876141723245382,
-0.0012935871491208673,
0.11892717331647873,
-0... |
cd3cb540-c82e-4de1-bfed-16a7f1f8420e | sidebar_label: 'Overview'
slug: /migrations/elastic-overview
description: 'Migrating from Snowflake to ClickHouse'
keywords: ['Snowflake']
title: 'Migrate from Snowflake to ClickHouse'
show_related_blogs: true
doc_type: 'landing-page'
Elasticsearch to ClickHouse migration
For observability use cases, see the
Ela... | {"source_file": "01_overview.md"} | [
0.05875181406736374,
-0.03953171893954277,
0.011996075510978699,
0.039458878338336945,
0.11186251044273376,
0.004935420583933592,
-0.016577638685703278,
-0.01833971031010151,
-0.0580800324678421,
0.008622401393949986,
-0.0328109934926033,
-0.01693194918334484,
0.0061616855673491955,
-0.010... |
d8295baf-07ec-4426-8539-ccd2bd459881 | sidebar_label: 'Overview'
slug: /migrations/snowflake-overview
description: 'Migrating from Snowflake to ClickHouse'
keywords: ['Snowflake']
title: 'Migrate from Snowflake to ClickHouse'
show_related_blogs: true
doc_type: 'guide'
import snowflake_architecture from '@site/static/images/cloud/onboard/discover/use_cas... | {"source_file": "01_overview.md"} | [
-0.024755824357271194,
0.01734653115272522,
-0.029301276430487633,
0.06321264058351517,
0.11317279189825058,
-0.04936312511563301,
0.01040263008326292,
0.012566163204610348,
-0.023342981934547424,
-0.019075211137533188,
-0.029242131859064102,
0.020449042320251465,
0.04110908880829811,
-0.0... |
05e0608d-7086-49e0-90a2-645752221237 | For this reason, ClickHouse Cloud utilizes a shared-storage architecture that is
conceptually similar to Snowflake. Data is stored once in an object store
(single copy), such as S3 or GCS, providing virtually infinite storage with
strong redundancy guarantees. Each node has access to this single copy of the
data as ... | {"source_file": "01_overview.md"} | [
0.03146393224596977,
-0.06127455085515976,
-0.029081812128424644,
0.06887296587228775,
0.061435483396053314,
-0.026264039799571037,
-0.07540544122457504,
-0.029978493228554726,
0.08976878225803375,
0.005619957111775875,
-0.038377389311790466,
0.06664463877677917,
0.0229952409863472,
-0.070... |
7ff13216-19b4-453a-948e-84507d85074e | Snowflake and ClickHouse Cloud take different approaches to scaling to
increase query concurrency. Snowflake addresses this through a feature
known as
multi-cluster warehouses
.
This feature allows users to add clusters to a warehouse. While this offers no
improvement to query latency, it does provide addit... | {"source_file": "01_overview.md"} | [
-0.019830621778964996,
-0.06075149402022362,
-0.0555599071085453,
0.05933316797018051,
-0.02367609366774559,
-0.07505013793706894,
-0.04648689553141594,
-0.052690085023641586,
0.000009742943802848458,
0.0005663862684741616,
-0.03288751840591431,
0.006526283919811249,
0.020342836156487465,
... |
624c3d42-257a-4119-8c26-92183db9d088 | Lower cost
: Snowflake warehouses can be configured to suspend after
a period of query inactivity. Once suspended, charges are not incurred.
Practically, this inactivity check can
only be lowered to 60s
.
Warehouses will automatically resume, within several seconds, once a query
is received. With Snowflake... | {"source_file": "01_overview.md"} | [
-0.011422139592468739,
-0.014517590403556824,
-0.018713418394327164,
0.11304870992898941,
0.0626162588596344,
-0.01062480453401804,
-0.02500150538980961,
-0.03429670259356499,
0.07217005640268326,
0.011018707416951656,
-0.05794570967555046,
0.046959616243839264,
0.02002188377082348,
-0.016... |
0fe13552-d904-4c13-b894-3d4ab9e00662 | sidebar_label: 'Migration guide'
slug: /migrations/snowflake
description: 'Migrating from Snowflake to ClickHouse'
keywords: ['Snowflake']
title: 'Migrating from Snowflake to ClickHouse'
show_related_blogs: false
doc_type: 'guide'
import migrate_snowflake_clickhouse from '@site/static/images/migrations/migrate_snow... | {"source_file": "02_migration_guide.md"} | [
0.020341575145721436,
-0.05271514877676964,
-0.029832836240530014,
0.04792839288711548,
0.11926805973052979,
-0.007737283129245043,
0.002833705861121416,
0.00442384323105216,
-0.03291330859065056,
-0.03433345630764961,
-0.004159474745392799,
-0.04426777735352516,
0.0492931567132473,
-0.069... |
78dcf717-25d4-484d-80ed-f8d868a174ff | Assuming the following table target schema:
sql
CREATE TABLE default.mydataset
(
`timestamp` DateTime64(6),
`some_text` String,
`some_file` Tuple(filename String, version String),
`complex_data` Tuple(name String, description String),
)
ENGINE = MergeTree
ORDER BY (timestamp)
We can then use the
INSERT INT... | {"source_file": "02_migration_guide.md"} | [
0.003799623576924205,
-0.07031719386577606,
-0.059474263340234756,
-0.0104214521124959,
-0.018120966851711273,
0.006952309049665928,
-0.038016997277736664,
0.012191088870167732,
-0.05356412008404732,
0.02814248576760292,
0.07580247521400452,
-0.046565353870391846,
0.0582844577729702,
-0.08... |
67eb883f-75aa-4947-965c-9c8cb564c5ef | sidebar_label: 'SQL translation reference'
slug: /migrations/snowflake-translation-reference
description: 'SQL translation reference'
keywords: ['Snowflake']
title: 'Migrating from Snowflake to ClickHouse'
show_related_blogs: true
doc_type: 'guide'
Snowflake SQL translation guide
Data types {#data-types}
Numeri... | {"source_file": "03_sql_translation_reference.md"} | [
0.021618982776999474,
-0.031711023300886154,
-0.05327264964580536,
0.021351667121052742,
0.014223456382751465,
-0.00030531585798598826,
0.03182229772210121,
0.054183099418878555,
-0.023091521114110947,
-0.09850839525461197,
-0.07721864432096481,
0.003995484672486782,
0.025552498176693916,
... |
fe265868-d940-4831-88e7-be6c1c901fef | ClickHouse offers the equivalent
Variant
,
Object
(now deprecated in favor of the native
JSON
type) and
Array
types. Additionally, ClickHouse has the
JSON
type which replaces the now deprecated
Object('json')
type and is particularly
performant and storage efficient in
comparison to other native JSON types... | {"source_file": "03_sql_translation_reference.md"} | [
-0.06494662910699844,
0.015277481637895107,
-0.012785237282514572,
0.028670255094766617,
0.005928645841777325,
-0.0860917717218399,
-0.04162480682134628,
0.03400587663054466,
-0.010501728393137455,
-0.06137973442673683,
-0.08451230078935623,
0.03174262493848801,
-0.04240535572171211,
0.041... |
9fee1c8f-6347-49d3-a78f-caa67da447b8 | | Snowflake ... | {"source_file": "03_sql_translation_reference.md"} | [
-0.01001453585922718,
-0.0006727049476467073,
0.01699129492044449,
-0.013975062407553196,
-0.034197136759757996,
-0.010079222731292248,
0.00853007473051548,
-0.012036092579364777,
-0.022855889052152634,
-0.05191882699728012,
-0.040425363928079605,
-0.008059924468398094,
-0.014858197420835495... |
a8fe61ab-ca5b-462f-b813-611456242622 | |
FLOAT
,
FLOAT4
,
FLOAT8
... | {"source_file": "03_sql_translation_reference.md"} | [
0.11574121564626694,
0.01814737543463707,
-0.04348642751574516,
-0.0018007007893174887,
0.0008765647653490305,
-0.00956083182245493,
-0.05797484144568443,
0.004443679004907608,
-0.04481865093111992,
-0.049074821174144745,
-0.03656693920493126,
-0.10284093767404556,
-0.005949890706688166,
-... |
ef2b6e77-946c-445f-aaf7-ac831fc3bb0b | |
BOOLEAN
... | {"source_file": "03_sql_translation_reference.md"} | [
0.006691169459372759,
0.03231026604771614,
-0.08970007300376892,
0.022136257961392403,
0.04007498174905777,
-0.012948191724717617,
-0.058382075279951096,
0.021945061162114143,
-0.010757984593510628,
-0.015339026227593422,
-0.04877440631389618,
-0.01613158918917179,
-0.02764412946999073,
-0... |
0312a1db-8e25-496e-81a3-e7e202707f3a | DateTime
and
DateTime64
can optionally have a TZ parameter defined for the column. If not present, the server's timezone is used. Additionally a
--use_client_time_zone
parameter is available for the client. ... | {"source_file": "03_sql_translation_reference.md"} | [
0.013304811902344227,
-0.0005062801647000015,
-0.01382453739643097,
0.025990009307861328,
0.020609967410564423,
-0.045350510627031326,
-0.06530823558568954,
0.03073187917470932,
-0.005325862672179937,
-0.04474548622965813,
-0.08156124502420425,
0.00564936175942421,
-0.04539353772997856,
0.... |
da817ff1-df7d-4fe6-b61b-b09176fc631f | |
GEOGRAPHY
... | {"source_file": "03_sql_translation_reference.md"} | [
0.05468246340751648,
-0.0319739505648613,
-0.04529844596982002,
-0.014520002529025078,
-0.023383306339383125,
-0.05240129679441452,
-0.009542778134346008,
-0.031124543398618698,
0.017229869961738586,
-0.08966635912656784,
-0.02615823596715927,
-0.011737214401364326,
0.014218559488654137,
-... |
4588490e-493a-47b1-9963-c75c01e98cf7 | | ClickHouse Type | Description |
|-------------------|-----------------------------------------------------------------------------------------------------|
|
IPv4
and
IPv6
| IP-specific types, potentially allowing more effic... | {"source_file": "03_sql_translation_reference.md"} | [
-0.021269798278808594,
-0.009614133276045322,
-0.08939839899539948,
-0.047604966908693314,
0.01754305511713028,
-0.04713703319430351,
0.014947504736483097,
-0.010210483334958553,
-0.021265089511871338,
-0.05181436613202095,
-0.036388203501701355,
-0.0006737532676197588,
0.027137598022818565,... |
54032b84-1923-449e-8016-9d1aff1d568e | slug: /migrations/postgresql/overview
title: 'Comparing PostgreSQL and ClickHouse'
description: 'A guide to migrating from PostgreSQL to ClickHouse'
keywords: ['postgres', 'postgresql', 'migrate', 'migration']
sidebar_label: 'Overview'
doc_type: 'guide'
Comparing ClickHouse and PostgreSQL
Why use ClickHouse over ... | {"source_file": "01_overview.md"} | [
-0.015111216343939304,
-0.04905413091182709,
-0.018372584134340286,
0.03936990350484848,
-0.018749447539448738,
-0.07090400159358978,
0.004901784472167492,
0.009637029841542244,
0.0651244968175888,
-0.04945731535553932,
-0.006570317782461643,
0.08337674289941788,
-0.0392046794295311,
-0.07... |
88d8e42d-06cc-4e52-b74f-f8888648a290 | Real-time Change Data Capture (CDC) can be implemented in ClickHouse using
ClickPipes
, if you're using ClickHouse Cloud, or
PeerDB
in case you're running ClickHouse on-prem. Those solutions handles the complexities of real-time data synchronization, including initial load, by capturing inserts, updates, and deletes... | {"source_file": "01_overview.md"} | [
-0.04868904501199722,
-0.058932844549417496,
-0.019940409809350967,
0.015176977030932903,
-0.0349239781498909,
-0.06602119654417038,
-0.028681235387921333,
-0.041683632880449295,
-0.029416464269161224,
0.04134543985128403,
-0.0005467965384013951,
0.02875698357820511,
-0.023176366463303566,
... |
5353ba51-0e03-41b7-bef1-bc3653a33b13 | slug: /migrations/postgresql
pagination_prev: null
pagination_next: null
title: 'PostgreSQL'
description: 'Landing page for the PostgreSQL migrations section'
doc_type: 'landing-page'
keywords: ['PostgreSQL migration', 'database migration', 'ClickHouse migration', 'CDC replication', 'data migration']
| Page ... | {"source_file": "index.md"} | [
0.058747779577970505,
-0.00858794990926981,
0.042206309735774994,
-0.013956311158835888,
-0.033106014132499695,
-0.006093042436987162,
-0.056534294039011,
-0.07241527736186981,
0.006194252986460924,
0.05411656200885773,
0.046435993164777756,
-0.03638972342014313,
0.009052404202520847,
-0.1... |
470d20f9-d170-4832-8e8e-9e234fd235f0 | slug: /migrations/postgresql/appendix
title: 'Appendix'
keywords: ['postgres', 'postgresql', 'data types', 'types']
description: 'Additional information relative to migrating from PostgreSQL'
doc_type: 'reference'
import postgresReplicas from '@site/static/images/integrations/data-ingestion/dbms/postgres-replicas.p... | {"source_file": "appendix.md"} | [
-0.002896935446187854,
-0.02770007774233818,
0.0007543150568380952,
0.014245793223381042,
-0.02310444787144661,
-0.08128943294286728,
-0.016218021512031555,
0.0028091829735785723,
0.030073147267103195,
0.011989018879830837,
-0.011516624130308628,
0.09141626209020615,
0.02765323407948017,
-... |
d46e2008-0f2c-4606-a621-dde470300737 | In contrast, ClickHouse shards and replicas are two key concepts related to data distribution and redundancy
. ClickHouse replicas can be thought of as analogous to Postgres replicas, although replication is eventually consistent with no notion of a primary. Sharding, unlike Postgres, is supported natively.
A shard i... | {"source_file": "appendix.md"} | [
0.012539663352072239,
-0.08035597950220108,
-0.03353344649076462,
-0.003155189100652933,
-0.07805528491735458,
-0.03968561440706253,
-0.05527478829026222,
-0.025022348389029503,
0.10009560734033585,
0.03761153668165207,
-0.023354539647698402,
0.051538798958063126,
0.0754433199763298,
-0.03... |
a3b8568c-0cac-42a2-83f4-005a8727c4ee | The replication process in ClickHouse (1) starts when data is inserted into any replica. This data, in its raw insert form, is (2) written to disk along with its checksums. Once written, the replica (3) attempts to register this new data part in Keeper by allocating a unique block number and logging the new part's deta... | {"source_file": "appendix.md"} | [
-0.04459299147129059,
-0.03740287944674492,
-0.0688793882727623,
-0.01270669512450695,
-0.011667792685329914,
-0.10347699373960495,
-0.011623409576714039,
-0.0926869660615921,
0.06787550449371338,
0.0946013480424881,
0.013472061604261398,
0.05970282107591629,
0.0606677271425724,
-0.0684322... |
479ea928-93c0-42d1-9399-f43d33a1aefc | Conversely, PostgreSQL's streaming replication model typically can prevent dirty reads by employing synchronous replication options where the primary waits for at least one replica to confirm the receipt of data before committing transactions. This ensures that once a transaction is committed, a guarantee exists that t... | {"source_file": "appendix.md"} | [
-0.0529181994497776,
-0.08231870085000992,
-0.037639666348695755,
0.04631887003779411,
-0.062234897166490555,
-0.05237628519535065,
-0.04151685908436775,
-0.05588316172361374,
0.04561682417988777,
0.02046099677681923,
-0.027574850246310234,
0.1136382669210434,
0.027136921882629395,
-0.0363... |
844c55e9-0f89-4894-94a0-aebb14d6f7cc | Contact support for access to sticky endpoints.
ClickHouse OSS {#clickhouse-oss}
To achieve this behavior in OSS depends on your shard and replica topology and if you are using a
Distributed table
for querying.
When you have only one shard and replicas (common since ClickHouse vertically scales), users select... | {"source_file": "appendix.md"} | [
0.03164758160710335,
-0.034555014222860336,
0.037054553627967834,
0.014193938113749027,
-0.03301244601607323,
-0.08895473927259445,
-0.0043857526034116745,
-0.053502727299928665,
0.01506193820387125,
0.0058029284700751305,
-0.026204733178019524,
0.02220432460308075,
0.08130897581577301,
-0... |
54aeef43-bf16-4812-809d-87b1951b55ec | Sync replicas manually
- If you write to one replica and read from another, you can use issue
SYSTEM SYNC REPLICA LIGHTWEIGHT
prior to reading.
Enable sequential consistency
- via the query setting
select_sequential_consistency = 1
. In OSS, the setting
insert_quorum = 'auto'
must also be specified.
See ... | {"source_file": "appendix.md"} | [
-0.0387842133641243,
-0.09709431231021881,
-0.06755976378917694,
0.03259604424238205,
-0.08924104273319244,
-0.0343136340379715,
-0.02920076996088028,
-0.03700987622141838,
0.031181881204247475,
-0.008625820279121399,
0.0017387355910614133,
0.0745055079460144,
0.006387379486113787,
-0.0800... |
107cc846-6bad-47f4-8f54-42f65bb420d2 | response title="Response"
ββtableββββββββ¬βcompressed_sizeββ
β posts β 25.17 GiB β
β users β 846.57 MiB β
β badges β 513.13 MiB β
β comments β 7.11 GiB β
β votes β 1.28 GiB β
β posthistory β 40.44 GiB β
β postlinks β 79.22 MiB β
βββββββββββββββ΄βββββββ... | {"source_file": "appendix.md"} | [
0.000007456239472958259,
-0.02951643615961075,
-0.02068207412958145,
0.09621424227952957,
-0.06310955435037613,
-0.009786607697606087,
-0.003983658738434315,
-0.004091800190508366,
-0.0530741848051548,
0.05600123479962349,
-0.03027837909758091,
-0.027130497619509697,
0.032103974372148514,
... |
379bc8ef-8c74-4c51-94c2-488600adc351 | slug: /migrations/postgresql/rewriting-queries
title: 'Rewriting PostgreSQL Queries'
keywords: ['postgres', 'postgresql', 'rewriting queries']
description: 'Part 2 of a guide on migrating from PostgreSQL to ClickHouse'
sidebar_label: 'Part 2'
doc_type: 'guide'
This is
Part 2
of a guide on migrating from Postgre... | {"source_file": "02_migration_guide_part2.md"} | [
-0.01972835697233677,
-0.07193788886070251,
-0.020183833315968513,
0.012384083122015,
-0.07594306021928787,
-0.07243718951940536,
-0.0018907446647062898,
-0.020516788586974144,
-0.05483940243721008,
0.038367997854948044,
0.03661537170410156,
0.04290362820029259,
0.009927603416144848,
-0.11... |
f95ec39d-03ee-4aa5-b754-b622d6da433c | ownerdisplayname | total_views
-------------------------+-------------
Joan Venge | 25520387
Ray Vega | 21576470
Tim | 18283579
J. Pablo FernΓ‘ndez | 12446818
Matt | 12298764
Time: 107620.508 ms (01:47.621)
```
... | {"source_file": "02_migration_guide_part2.md"} | [
0.03598877787590027,
-0.10975038260221481,
-0.030285291373729706,
-0.03116811253130436,
-0.011352652683854103,
-0.052811894565820694,
0.07928233593702316,
-0.026206178590655327,
-0.0014853921020403504,
0.029922761023044586,
0.018557190895080566,
-0.05428772419691086,
0.06775636225938797,
-... |
827bc178-ae96-4a92-906e-2c3bf6b33d36 | This is significantly simpler (and faster) than the equivalent Postgres query:
```sql
--Postgres
WITH yearly_views AS (
SELECT
EXTRACT(YEAR FROM CreationDate) AS Year,
Title,
ViewCount,
ROW_NUMBER() OVER (PARTITION BY EXTRACT(YEAR FROM CreationDate) ORDER BY ViewCount DESC) AS ... | {"source_file": "02_migration_guide_part2.md"} | [
0.005646960809826851,
-0.034476153552532196,
0.04467632248997688,
-0.0181280430406332,
-0.08599510788917542,
0.05647030100226402,
-0.02662615105509758,
-0.029733192175626755,
-0.03850306570529938,
-0.01650257781147957,
0.0013404127676039934,
-0.04840996488928795,
-0.02086445689201355,
-0.0... |
2548c7de-36e5-4563-b362-2159ab63d8ef | 5 rows in set. Elapsed: 0.247 sec. Processed 5.08 million rows, 155.73 MB (20.58 million rows/s., 630.61 MB/s.)
Peak memory usage: 403.04 MiB.
```
```sql
--Postgres
SELECT
tag,
SUM(CASE WHEN year = 2023 THEN count ELSE 0 END) AS count_2023,
SUM(CASE WHEN year = 2022 THEN count ELSE 0 END) AS c... | {"source_file": "02_migration_guide_part2.md"} | [
0.06099560856819153,
0.035557325929403305,
-0.052802674472332,
0.0163011122494936,
-0.0037819440476596355,
-0.04100198298692703,
-0.031506266444921494,
0.007517390418797731,
-0.04336699843406677,
0.045933742076158524,
0.01555152703076601,
-0.0364166796207428,
0.01790950819849968,
-0.059959... |
0851bae3-6f68-4251-870c-0c88c6a59ac3 | slug: /migrations/postgresql/data-modeling-techniques
title: 'Data modeling techniques'
description: 'Part 3 of a guide on migrating from PostgreSQL to ClickHouse'
keywords: ['postgres', 'postgresql']
show_related_blogs: true
sidebar_label: 'Part 3'
doc_type: 'guide'
import postgres_b_tree from '@site/static/images... | {"source_file": "03_migration_guide_part3.md"} | [
0.019291765987873077,
-0.04278985410928726,
0.001876826281659305,
0.03420764580368996,
0.01846981793642044,
-0.04347774013876915,
0.01298764068633318,
-0.00989203155040741,
-0.06850530207157135,
0.009289737790822983,
0.037814173847436905,
-0.008747326210141182,
0.040972139686346054,
-0.055... |
243ed0cd-0e82-4132-a79c-a222cd716594 | Sparse indexing
is possible because ClickHouse stores the rows for a part on disk ordered by a specified key. Instead of directly locating single rows (like a B-Tree-based index), the sparse primary index allows it to quickly (via a binary search over index entries) identify groups of rows that could possibly match th... | {"source_file": "03_migration_guide_part3.md"} | [
-0.014104526489973068,
-0.011588934808969498,
-0.042150162160396576,
0.05174494534730911,
0.016834987327456474,
-0.05108753591775894,
-0.004597048740833998,
-0.057548344135284424,
0.05581521615386009,
0.00950183067470789,
-0.019190553575754166,
0.07487465441226959,
0.03754081949591637,
-0.... |
aafaf0a2-1eb7-4306-8ec6-8600bfb28273 | In ClickHouse, partitioning is specified on a table when it is initially defined via the
PARTITION BY
clause. This clause can contain a SQL expression on any columns, the results of which will define which partition a row is sent to.
The data parts are logically associated with each partition on disk and can be q... | {"source_file": "03_migration_guide_part3.md"} | [
-0.03186561539769173,
-0.01938086375594139,
0.0013996486086398363,
0.05535859987139702,
-0.0026503161061555147,
-0.031029392033815384,
0.025784119963645935,
-0.00007296114199561998,
-0.01821862906217575,
0.029948405921459198,
0.033294763416051865,
-0.04939156025648117,
0.06501320749521255,
... |
86c114e0-4c0d-4e08-a857-ecfa1788901e | 17 rows in set. Elapsed: 0.002 sec.
ALTER TABLE posts
(DROP PARTITION '2008')
Ok.
0 rows in set. Elapsed: 0.103 sec.
```
Query optimization
- While partitions can assist with query performance, this depends heavily on the access patterns. If queries target only a few partitions (ideally one), performance can... | {"source_file": "03_migration_guide_part3.md"} | [
-0.032774269580841064,
0.052155300974845886,
0.06310296058654785,
0.020761046558618546,
0.05213630571961403,
-0.0119780283421278,
0.02997194416821003,
0.04057624191045761,
0.03360392898321152,
-0.05052465200424194,
-0.06777766346931458,
-0.013319541700184345,
-0.006501175928860903,
-0.0129... |
1dfb4772-7405-462e-98ce-a1376f44e8d0 | Materialized views vs projections {#materialized-views-vs-projections}
Postgres allows for the creation of multiple indices on a single table, enabling optimization for a variety of access patterns. This flexibility allows administrators and developers to tailor database performance to specific queries and operationa... | {"source_file": "03_migration_guide_part3.md"} | [
-0.055786047130823135,
-0.08401140570640564,
-0.06332497298717499,
0.05398562178015709,
-0.08034833520650864,
-0.009036953561007977,
-0.0005194226978346705,
-0.04325518012046814,
0.07330753654241562,
0.04424206167459488,
-0.049909837543964386,
0.08926092088222504,
0.07766064256429672,
-0.0... |
b3c519f4-b454-4101-9030-cb499c45b08d | ββparts_to_doββ¬βis_doneββ¬βlatest_fail_reasonββ
1. β 1 β 0 β β
βββββββββββββββ΄ββββββββββ΄βββββββββββββββββββββ
1 row in set. Elapsed: 0.003 sec.
```
If we repeat the above query, we can see performance has improved significantly at the expense of additional storage.
```sql
SELE... | {"source_file": "03_migration_guide_part3.md"} | [
-0.0408686101436615,
-0.07600858062505722,
-0.038990676403045654,
0.1353418380022049,
-0.005957781337201595,
-0.00975506380200386,
0.08423157036304474,
0.07078846544027328,
0.024243216961622238,
0.06647402793169022,
-0.01533757708966732,
0.01958363503217697,
0.10498765110969543,
-0.0137502... |
64d28ef4-dc14-4e0f-a239-a2ddf77a6970 | Users are comfortable with the associated increase in storage footprint and
overhead of writing data twice. Test the impact on insertion speed and
evaluate the storage overhead
.
:::note
Since version 25.5, ClickHouse supports the virtual column
_part_offset
in
projections. This unlocks a more space-effic... | {"source_file": "03_migration_guide_part3.md"} | [
-0.006047913804650307,
-0.026483528316020966,
-0.04802615940570831,
0.01968533918261528,
0.012037647888064384,
-0.018793392926454544,
-0.059061698615550995,
0.012263627722859383,
0.015199011191725731,
0.00693892827257514,
-0.01401819009333849,
0.07582350075244904,
-0.016605906188488007,
-0... |
6ad4e7ce-2c60-4330-953d-0b55ce2afa8d | slug: /migrations/postgresql/dataset
title: 'Migrating data'
description: 'Dataset example to migrate from PostgreSQL to ClickHouse'
keywords: ['Postgres']
show_related_blogs: true
sidebar_label: 'Part 1'
doc_type: 'guide'
import postgres_stackoverflow_schema from '@site/static/images/migrations/postgres-stackoverf... | {"source_file": "01_migration_guide_part1.md"} | [
-0.024915538728237152,
-0.10252857208251953,
-0.021951017901301384,
0.010082394815981388,
0.03727284446358681,
-0.0305637139827013,
-0.0029607100877910852,
-0.04973423480987549,
-0.06866820156574249,
0.014493543654680252,
0.05728641897439957,
0.013980424031615257,
0.0404694527387619,
-0.08... |
b929d357-45da-4912-ad4d-dc2256fcb2ba | While small for ClickHouse, this dataset is substantial for Postgres. The above represents a subset covering the first three months of 2024.
While our example results use the full dataset to show performance differences between Postgres and Clickhouse, all steps documented below are functionally identical with the ... | {"source_file": "01_migration_guide_part1.md"} | [
-0.03554532304406166,
-0.07207770645618439,
-0.04718555137515068,
-0.028716357424855232,
-0.024192407727241516,
-0.06806380301713943,
-0.02907245233654976,
-0.049025505781173706,
-0.03497551381587982,
0.046682827174663544,
0.015444912016391754,
0.04044799134135246,
-0.019652115181088448,
-... |
d5b62020-1cba-4fee-bd59-194f167691fe | When loading data manually from PostgreSQL, you need to first create the tables in ClickHouse. Refer to this
Data Modeling documentation
to that also uses the Stack Overflow dataset to optimize the table schema in ClickHouse.
Data types between PostgreSQL and ClickHouse might differ. To establish the equivalent ty... | {"source_file": "01_migration_guide_part1.md"} | [
0.04391104355454445,
-0.10794541239738464,
-0.09289798140525818,
-0.005016739945858717,
-0.1319311261177063,
-0.06422309577465057,
0.022862078621983528,
-0.015796424821019173,
-0.03986596316099167,
-0.006865385454148054,
0.013691962696611881,
-0.01558037381619215,
0.017630139365792274,
-0.... |
514b472e-2c7e-440f-abd3-783bea93833c | ```sql
-- initial load
INSERT INTO stackoverflow.posts SELECT * FROM postgresql('
', 'postgres', 'posts', 'postgres', '<password')
INSERT INTO stackoverflow.posts SELECT * FROM postgresql('
', 'postgres', 'posts', 'postgres', '
( SELECT (max(CreationDate) FROM stackoverflow.posts)
```
ClickHouse will push down s... | {"source_file": "01_migration_guide_part1.md"} | [
-0.04824385419487953,
-0.0884239450097084,
-0.03632090985774994,
0.017461398616433144,
-0.07142623513936996,
-0.05979003757238388,
0.0195328202098608,
-0.05421644449234009,
0.02165398746728897,
0.01638529822230339,
-0.005465904250741005,
0.0941142588853836,
0.04264460876584053,
-0.13269335... |
c6828b85-2484-4aa0-8630-0f831089e8ae | slug: /cloud/get-started/cloud/use-cases/real-time-analytics
title: 'Real-time analytics'
description: 'Learn how to build real-time analytics applications with ClickHouse Cloud for instant insights and data-driven decision making'
keywords: ['use cases', 'real-time analytics']
sidebar_label: 'Real-time analytics'
doc_... | {"source_file": "01_real-time-analytics.md"} | [
-0.09664497524499893,
0.018157770857214928,
-0.14121201634407043,
0.06781863421201706,
0.06191827356815338,
-0.07049192488193512,
0.09403324872255325,
0.008399443700909615,
0.02760406583547592,
0.04722985997796059,
0.04632817953824997,
0.014275740832090378,
0.01711765117943287,
0.050525989... |
98afdc13-9607-42eb-8b89-2aaf7d73da7d | We can now derive insights from events almost as soon as theyβre generated. But
why is this useful?
Benefits of real-time analytics {#benefits-of-real-time-analytics}
In today's fast-paced world, organizations rely on real-time analytics to stay
agile and responsive to ever-changing conditions. A real-time analyt... | {"source_file": "01_real-time-analytics.md"} | [
-0.07181466370820999,
0.04512430727481842,
-0.029294895008206367,
0.057028863579034805,
0.10127239674329758,
0.03840586915612221,
0.0030035206582397223,
0.022526545450091362,
0.12514354288578033,
0.019092300906777382,
-0.04765266925096512,
0.051626428961753845,
-0.05789311230182648,
0.0386... |
c27093c3-2d52-4bd6-bfd6-0897e85a879c | They identified the following characteristics of ClickHouse that enable real-time
fraud detection:
ClickHouse supports LSM-tree based MergeTree family engines.
These are optimized for writing which is suitable for ingesting large amounts
of data in real-time.
ClickHouse is designed and optimized explicitly for ... | {"source_file": "01_real-time-analytics.md"} | [
-0.06724793463945389,
-0.0001327255740761757,
-0.04365910589694977,
0.0440741665661335,
0.036515675485134125,
-0.07940191775560379,
0.03601644188165665,
0.0288789551705122,
0.031012337654829025,
0.0007096084882505238,
-0.022289618849754333,
0.021375562995672226,
0.008945885114371777,
0.000... |
c56d5b27-631a-476f-b31c-2c8e97af8444 | slug: /cloud/get-started/cloud/use-cases/data_lake_and_warehouse
title: 'Data Lakehouse'
description: 'Build modern data warehousing architectures with ClickHouse Cloud combining the flexibility of data lakes with database performance'
keywords: ['use cases', 'data lake and warehouse']
sidebar_label: 'Data warehousing'... | {"source_file": "03_data_warehousing.md"} | [
-0.00007780291343806311,
-0.02001807652413845,
0.014487060718238354,
-0.003313276218250394,
0.0280738715082407,
-0.04903591796755791,
0.00983632542192936,
-0.028125304728746414,
-0.0225380826741457,
-0.00936046615242958,
0.013145232573151588,
-0.010958334431052208,
0.09757264703512192,
-0.... |
b1a240f0-8c84-49be-957b-af15ae5d21d6 | Let's explore the core building blocks of a typical data lakehouse architecture
and how they interact to create a cohesive data management platform.
| Component | Description ... | {"source_file": "03_data_warehousing.md"} | [
0.045866403728723526,
-0.03351962938904762,
-0.00754794804379344,
-0.024851029738783836,
-0.04705685004591942,
-0.029892921447753906,
-0.0268959179520607,
0.036437228322029114,
-0.08311944454908371,
-0.0005834166659042239,
0.030995452776551247,
-0.035906970500946045,
0.041188377887010574,
... |
b2af204c-bb59-4605-be19-469e0035a7f6 | What are the benefits of the data lakehouse? {#benefits-of-the-data-lakehouse}
The data lakehouse architecture offers several significant advantages when compared
directly to both traditional data warehouses and data lakes:
Compared to traditional data warehouses {#compared-to-traditional-data-warehouses} | {"source_file": "03_data_warehousing.md"} | [
0.004729690030217171,
0.03928203135728836,
0.05871505290269852,
-0.01151724811643362,
0.0105280801653862,
0.02797890268266201,
-0.050529640167951584,
0.008919422514736652,
0.012700299732387066,
0.014517767354846,
0.024038800969719887,
0.003617717884480953,
0.05562201514840126,
-0.054852265... |
e3d5e99d-f7bd-40b7-8e19-60981db0bd5d | | # | Benefit | Description ... | {"source_file": "03_data_warehousing.md"} | [
0.00038413103902712464,
0.08246181905269623,
0.003911793231964111,
-0.005540262442082167,
-0.03329992666840553,
0.06140381470322609,
0.04778531566262245,
0.02402087301015854,
0.018861260265111923,
-0.08561837673187256,
0.03745585307478905,
-0.007835416123270988,
-0.00417125690728426,
-0.05... |
77e39f80-1fd3-4e68-8f35-63878d2604d8 | | 5 |
Independent scaling
| Lakehouses separate storage from compute, allowing each to scale independently based on actual needs, unlike many data warehouses, where they scale together. ... | {"source_file": "03_data_warehousing.md"} | [
0.010252677835524082,
-0.020113496109843254,
-0.011552851647138596,
-0.008412124589085579,
0.004457999486476183,
-0.06961978226900101,
-0.08832864463329315,
-0.007185293361544609,
-0.010816953144967556,
0.030576622113585472,
0.04920443147420883,
-0.03194519504904747,
0.0683724582195282,
-0... |
b7edaa38-7fcc-4021-8cd8-385d814709f4 | Compared to data lakes {#compared-to-data-lakes}
| # | Benefit | Description |
|---|-----------------------------|... | {"source_file": "03_data_warehousing.md"} | [
0.05844135209918022,
0.09160808473825455,
0.04923425614833832,
-0.00470190541818738,
-0.021236207336187363,
-0.02866053581237793,
0.019852854311466217,
0.03164758160710335,
-0.02453175187110901,
-0.026584794744849205,
0.054315660148859024,
-0.08724214136600494,
0.015903033316135406,
-0.028... |
fec13f94-b268-4da7-af7d-b851d1eb3c17 | ClickHouse integrates with open table formats such as Apache Iceberg, Delta Lake,
or Apache Hudi for more sophisticated data management needs. This integration
enables ClickHouse to take advantage of these formats' advanced features, while
still delivering the exceptional query performance it's known for. Organization... | {"source_file": "03_data_warehousing.md"} | [
-0.0006993397837504745,
-0.009574519470334053,
-0.05987522378563881,
0.027588015422225,
-0.0015196584863588214,
-0.04833827540278435,
-0.044817034155130386,
-0.0017769368132576346,
-0.005775004625320435,
-0.013273244723677635,
0.00902595091611147,
0.016868868842720985,
0.030994514003396034,
... |
ef030a2d-826e-4e72-b446-56ec026331eb | slug: /cloud/get-started/cloud/use-cases/observability
title: 'Observability'
description: 'Use ClickHouse Cloud for observability, monitoring, logging, and system performance analysis in distributed applications'
keywords: ['use cases', 'observability']
sidebar_label: 'Observability'
doc_type: 'guide'
Modern sof... | {"source_file": "02_observability.md"} | [
0.03148660063743591,
-0.0066433255560696125,
-0.03249416500329971,
-0.021856971085071564,
0.04228148236870766,
-0.09185941517353058,
-0.006804512348026037,
0.01200313400477171,
-0.003125672461465001,
0.03293224796652794,
-0.030500900000333786,
0.03740159049630165,
0.0673346221446991,
0.045... |
e7996ec9-f1f4-4083-afd1-e0d4976010af | The three pillars of observability {#three-pillars-of-observability}
To better understand how observability has evolved and works in practice, let's
examine the three pillars of observability - logs, metrics, and traces.
While modern observability has moved beyond treating these as separate concerns,
they remain ... | {"source_file": "02_observability.md"} | [
-0.020950714126229286,
-0.021033205091953278,
-0.0688815489411354,
0.002588077913969755,
0.024183640256524086,
-0.08323921263217926,
0.00919446349143982,
-0.016217563301324844,
0.028182292357087135,
0.0029153220821172,
-0.07307916134595871,
0.027022821828722954,
0.028817204758524895,
0.041... |
2916ec7f-2056-4055-afd0-84b2d76db9b8 | Reduced Mean Time to Detect (MTTD) and Mean Time to Resolve (MTTR)
Improved query response times, enabling faster investigation
Quicker identification of performance bottlenecks
Reduced time spent on-call
Fewer resources wasted on unnecessary rollbacks
We see this in practice -
trip.com built their observa... | {"source_file": "02_observability.md"} | [
-0.06256821751594543,
0.03305293992161751,
0.0036213051062077284,
0.044343311339616776,
0.057477571070194244,
-0.029144225642085075,
-0.048867929726839066,
-0.013783590868115425,
0.015601846389472485,
-0.016931230202317238,
-0.040766894817352295,
0.02887672558426857,
0.05909757316112518,
0... |
b7480f27-b464-4f04-aaa3-0c39b7f3a86b | Challenges in implementing observability {#challenges-in-implementing-observability}
Implementing observability within an organization is a transformative step toward
gaining deeper insights into system performance and reliability. However, this
journey is not without its challenges. As organizations strive to harne... | {"source_file": "02_observability.md"} | [
-0.02260054089128971,
-0.017502008005976677,
-0.031101668253540993,
-0.00005060744297225028,
0.02660750411450863,
-0.12856552004814148,
-0.05662009119987488,
-0.012549261562526226,
-0.061621397733688354,
-0.011886999942362309,
-0.02728760614991188,
-0.01905440352857113,
0.023485632613301277,... |
dc54560f-8229-4a80-a8f3-1e967f239bd1 | Security and compliance {#security-and-compliance}
Security and compliance considerations remain crucial, especially when handling
sensitive data within observability systems. Organizations must ensure that their
observability solutions adhere to relevant regulations and effectively protect
sensitive information.
... | {"source_file": "02_observability.md"} | [
-0.007660457398742437,
0.08037291467189789,
-0.05175439640879631,
-0.051661863923072815,
-0.00028278480749577284,
-0.07662710547447205,
-0.03543371707201004,
-0.02406233362853527,
-0.0029456336051225662,
0.024908391758799553,
0.009304076433181763,
0.033452779054641724,
0.04990460351109505,
... |
baa50024-c3db-404d-b0ce-5252b4309b9f | slug: /cloud/get-started/cloud/use-cases/overview
title: 'Building on ClickHouse Cloud'
description: 'Explore ClickHouse Cloud use cases including real-time analytics, observability, data lake & warehouse, and machine learning applications'
keywords: ['use cases', 'Cloud']
sidebar_label: 'Overview'
doc_type: 'landing-p... | {"source_file": "00_overview.md"} | [
-0.03799213469028473,
-0.02742306888103485,
-0.04104885831475258,
-0.005362064577639103,
0.01797560788691044,
-0.047400083392858505,
-0.006409579422324896,
-0.0028860156890004873,
-0.01579088717699051,
0.03924084082245827,
0.019732102751731873,
0.05810399353504181,
0.022986682131886482,
0.... |
b59eb2f7-9cb5-4d1f-b75a-78db6c5a8719 | | Use case | Description ... | {"source_file": "00_overview.md"} | [
0.02976197563111782,
0.08871979266405106,
0.01856815256178379,
-0.030431494116783142,
-0.04131359979510307,
0.06634893268346786,
0.014380432665348053,
0.01878468692302704,
0.03315512835979462,
-0.09461909532546997,
0.04873669147491455,
-0.022827524691820145,
-0.0009608393302187324,
-0.0196... |
a1cb4ef4-774b-4431-8bf1-ea45e9e8f42a | |
Observability
| ClickHouse Cloud is well suited for observability workloads, featuring specialized engines and functions optimized for time-series data that can ingest and query terabytes of logs, metrics, and traces with ease. Through ClickStack, ClickHouse's comprehensive observability solu... | {"source_file": "00_overview.md"} | [
-0.02509600855410099,
-0.046966392546892166,
-0.04276011884212494,
0.03339816629886627,
-0.006725706625729799,
-0.09810272604227066,
0.034336697310209274,
-0.04872867092490196,
-0.02844289503991604,
0.012922847643494606,
-0.0519515685737133,
-0.03546231612563133,
0.02363753877580166,
0.022... |
104f4b9a-b851-4aa1-8a7d-4ae7bf11859e | slug: /cloud/get-started/cloud/use-cases/AI_ML
title: 'Machine learning'
description: 'Learn how ClickHouse powers machine learning applications across the ML pipeline.'
keywords: ['use cases', 'Machine Learning', 'Generative AI']
sidebar_label: 'Machine learning'
doc_type: 'guide'
import machine_learning_data_laye... | {"source_file": "01_machine_learning.md"} | [
-0.053569331765174866,
-0.0026384887751191854,
0.050043705850839615,
0.05391515791416168,
0.08012734353542328,
-0.12309413403272629,
0.013033455237746239,
-0.026798050850629807,
-0.06634776294231415,
0.000038111604226287454,
0.01726316288113594,
0.042709264904260635,
0.01932423748075962,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.