id
stringlengths
36
36
document
stringlengths
3
3k
metadata
stringlengths
23
69
embeddings
listlengths
384
384
0c9df36d-6f82-4c69-b3ba-6f38247f04f1
slug: /intro sidebar_label: 'What is ClickHouse?' description: 'ClickHouse® is a column-oriented SQL database management system (DBMS) for online analytical processing (OLAP). It is available as both an open-source software and a cloud offering.' title: 'What is ClickHouse?' keywords: ['ClickHouse', 'columnar database'...
{"source_file": "intro.md"}
[ -0.01928318478167057, -0.0033720252104103565, -0.16380944848060608, 0.06337737292051315, 0.028821028769016266, -0.12753655016422272, 0.06000310927629471, 0.01023700088262558, 0.0026031085290014744, 0.03428010269999504, 0.047059301286935806, 0.05013338848948479, 0.10776232928037643, -0.0612...
dc182783-ccd6-4f7f-a8f8-97d9ae122754
You can run this query on the ClickHouse SQL Playground that selects and filters just a few out of over 100 existing columns, returning the result within milliseconds: As you can see in the stats section in the above diagram, the query processed 100 million rows in 92 milliseconds, a throughput of approximately...
{"source_file": "intro.md"}
[ 0.038416940718889236, -0.07482552528381348, -0.1039363443851471, 0.046946100890636444, -0.004697634372860193, -0.09376468509435654, 0.042874399572610855, -0.003287683706730604, 0.06976799666881561, 0.07863056659698486, -0.007381668779999018, 0.07531782984733582, 0.03252466395497322, -0.080...
dc1bfc41-638a-45eb-8913-7ac7b352c117
Approximate calculation {#approximate-calculation} ClickHouse provides ways to trade accuracy for performance. For example, some of its aggregate functions calculate the distinct value count, the median, and quantiles approximately. Also, queries can be run on a sample of the data to compute an approximate result qui...
{"source_file": "intro.md"}
[ -0.0642973780632019, -0.002286137081682682, -0.024531498551368713, 0.035086531192064285, -0.02869349904358387, -0.10448848456144333, -0.02375706098973751, 0.042714446783065796, 0.041751131415367126, -0.03424740582704544, -0.04660622775554657, 0.046110183000564575, 0.057001739740371704, -0....
eb9d94fa-0a26-46de-88e5-d81db80a066e
slug: /deployment-modes sidebar_label: 'Deployment modes' description: 'ClickHouse offers four deployment options that all use the same powerful database engine, just packaged differently to suit your specific needs.' title: 'Deployment modes' keywords: ['Deployment Modes', 'chDB'] show_related_blogs: true doc_type: 'g...
{"source_file": "deployment-modes.md"}
[ 0.05412152037024498, -0.02603895030915737, -0.03815948963165283, 0.019295426085591316, 0.004027033224701881, -0.026011155918240547, -0.00045833399053663015, 0.02847343310713768, -0.06331382691860199, 0.016819315031170845, 0.04479881003499031, -0.05258171260356903, 0.14135469496250153, -0.0...
d4d6f4a8-e697-49a4-898c-641b3e021053
A key advantage of ClickHouse Cloud is its integrated tooling. ClickPipes provides a robust data ingestion framework, allowing you to easily connect and stream data from various sources without managing complex ETL pipelines. The platform also offers a dedicated querying API , making it significantly easier to build...
{"source_file": "deployment-modes.md"}
[ -0.006867928430438042, -0.016696671023964882, -0.04296214506030083, 0.03092867136001587, 0.01908104494214058, -0.021781345829367638, 0.005512129981070757, -0.015093328431248665, 0.021132726222276688, 0.03882049396634102, -0.06392413377761841, 0.002775719854980707, 0.04716826602816582, -0.0...
177d0ed1-ac5d-4759-b3a2-eb95df425c24
The combination of remote table functions and access to the local file system makes clickhouse-local particularly useful for scenarios where you need to join data between a ClickHouse Server and files on your local machine. This is especially valuable when working with sensitive or temporary local data that you don't w...
{"source_file": "deployment-modes.md"}
[ 0.01718216761946678, -0.02985115721821785, -0.05021491274237633, 0.05011414363980293, -0.013536999933421612, -0.02060171216726303, -0.03894020989537239, 0.06507585197687149, 0.012710122391581535, -0.003960840869694948, -0.02456613816320896, 0.013348270207643509, 0.04905331879854202, -0.026...
51057e2c-6362-46e0-9943-5ff57197dc7a
slug: /introduction-clickhouse title: 'Introduction' description: 'Landing page for Introduction' pagination_next: null doc_type: 'landing-page' keywords: ['ClickHouse introduction', 'getting started', 'what is ClickHouse', 'quick start', 'installation', 'deployment', 'tutorial'] Welcome to ClickHouse! Check out th...
{"source_file": "introduction-index.md"}
[ 0.01919693499803543, -0.02640656754374504, -0.037898462265729904, 0.008657253347337246, -0.04782656580209732, -0.015120362862944603, -0.03792779892683029, -0.03959900140762329, -0.07403235882520676, 0.010023212991654873, 0.05680134892463684, 0.03053119406104088, 0.05606914311647415, -0.082...
ef994a92-1978-4887-90e6-a5ad0223a81f
slug: /tutorial sidebar_label: 'Advanced tutorial' title: 'Advanced tutorial' description: 'Learn how to ingest and query data in ClickHouse using a New York City taxi example dataset.' sidebar_position: 0.5 keywords: ['clickhouse', 'install', 'tutorial', 'dictionary', 'dictionaries', 'example', 'advanced', 'taxi', 'ne...
{"source_file": "tutorial.md"}
[ 0.06047366186976433, -0.05308140814304352, -0.020995961502194405, 0.07229398190975189, -0.07572075724601746, -0.0031241104006767273, 0.0999741181731224, -0.004984110128134489, -0.09802655130624771, 0.031181475147604942, 0.08243687450885773, -0.028116928413510323, 0.0142813166603446, -0.021...
ac70d7fb-cf22-41f4-8ab5-85bb5a3a2466
For self-managed ClickHouse, connect to the SQL console at https://_hostname_:8443/play . Check with your ClickHouse administrator for the details. Create the following trips table in the default database: sql CREATE TABLE trips ( `trip_id` UInt32, `vendor_id` Enum8('1' = 1, '2...
{"source_file": "tutorial.md"}
[ 0.07858863472938538, -0.09341228753328323, -0.06888148188591003, 0.04802561178803444, -0.06447990983724594, 0.01892010308802128, 0.023231476545333862, -0.012598633766174316, -0.049334727227687836, 0.06526753306388855, 0.06607182323932648, -0.10060583800077438, -0.0040159327909350395, 0.008...
e56d593e-250b-4715-83eb-5c38ce1ad0ec
The following command inserts ~2,000,000 rows into your trips table from two different files in S3: trips_1.tsv.gz and trips_2.tsv.gz : sql INSERT INTO trips SELECT * FROM s3( 'https://datasets-documentation.s3.eu-west-3.amazonaws.com/nyc-taxi/trips_{1..2}.gz', 'TabSeparatedWithNames', " `trip_id` UI...
{"source_file": "tutorial.md"}
[ 0.016475437209010124, -0.05652754008769989, -0.05326473340392113, 0.03552749752998352, 0.003494352800771594, -0.0350937619805336, 0.03493805229663849, -0.024082254618406296, -0.050371166318655014, 0.061176180839538574, 0.02920377068221569, -0.057888031005859375, 0.048549503087997437, -0.05...
e4e320c8-15f3-40b9-ae81-46d9032bd8fb
Expected output The passenger_count ranges from 0 to 9: response ┌─passenger_count─┬─average_total_amount─┐ │ 0 │ 22.69 │ │ 1 │ 15.97 │ │ 2 │ 17.15 │ │ 3 │ 16.76 │ │ 4 │ ...
{"source_file": "tutorial.md"}
[ 0.03751980513334274, -0.05694474279880524, 0.05882725492119789, 0.1545122116804123, -0.07292012870311737, -0.020707206800580025, 0.03689555823802948, -0.02319454774260521, -0.062479935586452484, -0.02073882520198822, 0.07053999602794647, -0.10191455483436584, -0.010695922188460827, 0.03544...
08169bc3-4812-4ff7-8c4c-3211fbd274c1
Expected output response ┌──────────────avg_tip─┬───────────avg_fare─┬──────avg_passenger─┬──count─┬─trip_minutes─┐ │ 1.9600000381469727 │ 8 │ 1 │ 1 │ 27511 │ │ 0 │ 12 │ 2 │ 1 │ 27500 │ │ 0.54216667398...
{"source_file": "tutorial.md"}
[ 0.0027975807897746563, -0.05905662477016449, -0.030203988775610924, -0.00924490112811327, -0.020787514746189117, -0.12085580080747604, 0.019807320088148117, -0.0020363519433885813, 0.04580549895763397, 0.06828351318836212, 0.030300572514533997, -0.011409077793359756, 0.04370974749326706, -...
582dc70b-dd40-40b0-b47a-7ac744691c21
response ┌─pickup_ntaname───────────────────────────────────────────┬─pickup_hour─┬─pickups─┐ │ Airport │ 0 │ 3509 │ │ Airport │ 1 │ 1184 │ │ Airport ...
{"source_file": "tutorial.md"}
[ 0.058384861797094345, -0.009645843878388405, 0.02925707958638668, 0.03436172753572464, 0.04325731098651886, -0.05869687721133232, 0.030438240617513657, -0.06944656372070312, -0.08211804181337357, 0.07249592989683151, 0.043082475662231445, -0.0678800493478775, 0.025240017101168633, -0.02123...
f8fca207-9265-4a86-bfb4-3b2a695f9f9f
Retrieve rides to LaGuardia or JFK airports: sql SELECT pickup_datetime, dropoff_datetime, total_amount, pickup_nyct2010_gid, dropoff_nyct2010_gid, CASE WHEN dropoff_nyct2010_gid = 138 THEN 'LGA' WHEN dropoff_nyct2010_gid = 132 THEN 'JFK'...
{"source_file": "tutorial.md"}
[ 0.056326694786548615, -0.03791501373052597, 0.07194582372903824, 0.08467718213796616, -0.02403566986322403, -0.016435807570815086, 0.04129025712609291, 0.0021058947313576937, -0.049052171409130096, -0.013069674372673035, 0.03475150093436241, -0.02887413091957569, -0.047933388501405716, 0.0...
df11f09f-1690-4c86-a251-c8559d753872
Here's an excerpt from the CSV file you're using in table format. The LocationID column in the file maps to the pickup_nyct2010_gid and dropoff_nyct2010_gid columns in your trips table: | LocationID | Borough | Zone | service_zone | | ----------- | ----------- | ----------- | ----------- | | ...
{"source_file": "tutorial.md"}
[ 0.05993638187646866, -0.06723175942897797, -0.06772593408823013, 0.02287931926548481, 0.052565086632966995, 0.008882269263267517, 0.003751863492652774, -0.023081909865140915, -0.05735364183783531, -0.017438219860196114, 0.0400756299495697, -0.050385717302560806, -0.019738776609301567, -0.0...
5717d1b5-988f-4bb6-96d0-fdb0c7a56bbe
The following query returns 0 because 4567 is not a value of LocationID in the dictionary: sql SELECT dictHas('taxi_zone_dictionary', 4567) Use the dictGet function to retrieve a borough's name in a query. For example: sql SELECT count(1) AS total, dictGetOrDefault('taxi_zone...
{"source_file": "tutorial.md"}
[ 0.0657186284661293, -0.0352841392159462, 0.02900548465549946, 0.06622118502855301, -0.034131888300180435, -0.09874722361564636, 0.0916043221950531, 0.013648932799696922, 0.012802446261048317, 0.01459417399019003, 0.05195318162441254, -0.04214928671717644, 0.020907532423734665, -0.027089070...
98294a7e-4c9c-4c04-9498-4ee18eab7d1e
Next steps {#next-steps} Learn more about ClickHouse with the following documentation: Introduction to Primary Indexes in ClickHouse : Learn how ClickHouse uses sparse primary indexes to efficiently locate relevant data during queries. Integrate an external data source : Review data source integration options,...
{"source_file": "tutorial.md"}
[ 0.047080058604478836, -0.05786196142435074, -0.06612276285886765, 0.04817037656903267, -0.08397457748651505, -0.024488694965839386, -0.011186684481799603, -0.005086170509457588, -0.055344246327877045, 0.0072028194554150105, -0.01758847013115883, 0.020748693495988846, 0.005121382884681225, ...
1652497a-ad87-4366-8c63-896e4b2ff650
slug: /managing-data/truncate sidebar_label: 'Truncate table' title: 'Truncate Table' hide_title: false description: 'Truncate allows the data in a table or database to be removed, while preserving their existence.' doc_type: 'reference' keywords: ['truncate', 'delete data', 'remove data', 'clear table', 'table mainten...
{"source_file": "truncate.md"}
[ 0.012780768796801567, 0.09131450206041336, 0.007843563333153725, 0.03966870903968811, -0.004269876983016729, -0.03797914832830429, 0.05653275176882744, -0.01025429181754589, -0.032584067434072495, 0.04249319061636925, 0.07270859181880951, 0.0993771031498909, 0.06825192272663116, -0.1121570...
2469869e-ffeb-47bf-9e9e-135227638391
slug: /architecture/introduction sidebar_label: 'Introduction' title: 'Introduction' sidebar_position: 1 description: 'Page with deployment examples that are based on the advice provided to ClickHouse users by the ClickHouse Support and Services organization' doc_type: 'guide' keywords: ['deployment', 'architecture', '...
{"source_file": "terminology.md"}
[ -0.01570202223956585, -0.06512011587619781, -0.01998758688569069, -0.041050225496292114, -0.026695221662521362, -0.02941574715077877, -0.06881500035524368, -0.033201202750205994, -0.1069282814860344, 0.018296081572771072, 0.00800006277859211, 0.02310624159872532, 0.09707011282444, -0.02192...
0c131683-c91d-4e33-808d-0ae639854837
slug: /deployment-guides/index title: 'Deployment Guides Overview' description: 'Landing page for the deployment and scaling section' keywords: ['deployment guides', 'scaling', 'cluster deployment', 'replication', 'fault tolerance'] doc_type: 'landing-page' Deployment and scaling This section covers the following...
{"source_file": "index.md"}
[ 0.03878030180931091, -0.06717346608638763, -0.015256235376000404, -0.014660497196018696, 0.009461086243391037, -0.04744037613272667, -0.017895333468914032, 0.059590935707092285, -0.1223229467868805, 0.05728667229413986, 0.03194570168852806, 0.06153428554534912, 0.0818960890173912, -0.04765...
f5a17561-34f7-443e-95f2-b67670adc21e
slug: /materialized-view/refreshable-materialized-view title: 'Refreshable materialized view' description: 'How to use materialized views to speed up queries' keywords: ['refreshable materialized view', 'refresh', 'materialized views', 'speed up queries', 'query optimization'] doc_type: 'guide' import refreshableMa...
{"source_file": "refreshable-materialized-view.md"}
[ -0.041755303740501404, -0.030312083661556244, -0.020857909694314003, 0.0728878378868103, -0.004546112380921841, -0.08645723760128021, -0.01842697709798813, -0.011734364554286003, 0.039963286370038986, 0.004401677753776312, 0.019301073625683784, 0.08643145114183426, 0.037839263677597046, -0...
87e49c04-2385-42b0-b4a3-8971652c6247
Refreshable materialized views are refreshed automatically on an interval that's defined during creation. For example, the following materialized view is refreshed every minute: sql CREATE MATERIALIZED VIEW table_name_mv REFRESH EVERY 1 MINUTE TO table_name AS ... If you want to force refresh a materialized view, y...
{"source_file": "refreshable-materialized-view.md"}
[ 0.002424909733235836, -0.12971819937229156, -0.03942727670073509, 0.04588273912668228, -0.0328659787774086, -0.03491056337952614, 0.0041352021507918835, -0.030547592788934708, 0.014004361815750599, 0.0607239231467247, -0.00997274648398161, 0.011113900691270828, 0.013866748660802841, -0.041...
17f815d9-9ea1-4598-aeb6-ef81e2a65eb9
```sql SELECT * FROM events LIMIT 10 Query id: 7662bc39-aaf9-42bd-b6c7-bc94f2881036 ┌──────────────────ts─┬─uuid─┬─count─┐ │ 2008-08-06 17:07:19 │ 0eb │ 547 │ │ 2008-08-06 17:07:19 │ 60b │ 148 │ │ 2008-08-06 17:07:19 │ 106 │ 750 │ │ 2008-08-06 17:07:19 │ 398 │ 875 │ │ 2008-08-06 17:07:19 │ ca0 │ 318 ...
{"source_file": "refreshable-materialized-view.md"}
[ -0.009879187680780888, -0.037098582834005356, 0.004189153667539358, -0.0007879679324105382, -0.015202699229121208, -0.02899617701768875, 0.11038251221179962, 0.0075590829364955425, 0.004073039162904024, 0.04189596325159073, 0.013852370902895927, -0.009868900291621685, -0.009256947785615921, ...
80474c03-f8e2-48ad-a7ea-764cb153cd5c
In that guide, we showed how to denormalize the postlinks dataset onto the posts table with the following query: sql SELECT posts.*, arrayMap(p -> (p.1, p.2), arrayFilter(p -> p.3 = 'Linked' AND p.2 != 0, Related)) AS LinkedPosts, arrayMap(p -> (p.1, p.2), arrayFilter(p -> p.3 = 'Duplicate' AND p.2 !=...
{"source_file": "refreshable-materialized-view.md"}
[ -0.08368182182312012, -0.037874676287174225, -0.018214132636785507, 0.04269685596227646, -0.0685066506266594, -0.0674600750207901, -0.026277629658579826, -0.0723649337887764, -0.0692918449640274, 0.01806752011179924, 0.06501472741365433, 0.012007282115519047, 0.05034010112285614, -0.069585...
199515aa-b55a-4279-b55e-43fb2e77d026
We can then write the following query can be used to compute a summary of each actor, ordered by the most movie appearances. sql SELECT id, any(actor_name) AS name, uniqExact(movie_id) AS movies, round(avg(rank), 2) AS avg_rank, uniqExact(genre) AS genres, uniqExact(director_name) AS directors, max(created_at) ...
{"source_file": "refreshable-materialized-view.md"}
[ 0.06829503923654556, -0.1189783588051796, 0.015748994424939156, 0.031016560271382332, -0.014226237311959267, 0.07751626521348953, 0.061195556074380875, -0.004748438019305468, 0.032843466848134995, -0.00027196278097108006, 0.026350239291787148, -0.03873009607195854, 0.06649873405694962, 0.0...
60b8fd89-1f24-45c7-b7a7-f39248372557
And now we can define the view: sql CREATE MATERIALIZED VIEW imdb.actor_summary_mv REFRESH EVERY 1 MINUTE TO imdb.actor_summary AS SELECT id, any(actor_name) AS name, uniqExact(movie_id) AS num_movies, avg(rank) AS avg_rank, uniqExact(genre) AS unique_genres, uniqExact(...
{"source_file": "refreshable-materialized-view.md"}
[ -0.01415995229035616, -0.15261678397655487, -0.04526351019740105, 0.056112632155418396, -0.018831828609108925, 0.06520567089319229, 0.023471392691135406, -0.0651041716337204, 0.043304864317178726, 0.0038378650788217783, 0.047092970460653305, -0.03563303127884865, 0.06776566058397293, 0.025...
6f81e49e-7b70-47a3-a386-42eb8c087fee
Less than 60 seconds later, our target table is updated to reflect the prolific nature of Clicky's acting: sql SELECT * FROM imdb.actor_summary ORDER BY num_movies DESC LIMIT 5; ```text ┌─────id─┬─name────────────────┬─num_movies─┬──avg_rank─┬─unique_genres─┬─uniq_directors─┬──────────updated_at─┐ │ 845466 │ Clicky...
{"source_file": "refreshable-materialized-view.md"}
[ 0.0024795299395918846, -0.14885695278644562, -0.010569888167083263, 0.004331547766923904, -0.021050546318292618, 0.07193291932344437, 0.07742641866207123, -0.05051343888044357, -0.015780305489897728, 0.022688651457428932, 0.052222806960344315, -0.07049541175365448, 0.0151227917522192, -0.0...
2f2d4ee8-52c5-4653-84e3-872861851f4d
slug: /materialized-view/incremental-materialized-view title: 'Incremental materialized view' description: 'How to use incremental materialized views to speed up queries' keywords: ['incremental materialized views', 'speed up queries', 'query optimization'] score: 10000 doc_type: 'guide' import materializedViewDiag...
{"source_file": "incremental-materialized-view.md"}
[ -0.07030172646045685, -0.04298212751746178, -0.046441201120615005, 0.026803849264979362, -0.03560570627450943, -0.07006929069757462, 0.003023960627615452, -0.002255172934383154, 0.0817691832780838, 0.025270948186516762, 0.007639734540134668, 0.06191549077630043, 0.04478278383612633, -0.046...
58aa05d8-a013-4be2-b4bc-bb0b60ceabfc
```sql SELECT toStartOfDay(CreationDate) AS day, countIf(VoteTypeId = 2) AS UpVotes, countIf(VoteTypeId = 3) AS DownVotes FROM votes GROUP BY day ORDER BY day ASC LIMIT 10 ┌─────────────────day─┬─UpVotes─┬─DownVotes─┐ │ 2008-07-31 00:00:00 │ 6 │ 0 │ │ 2008-08-01 00:00:00 │ 182 │ ...
{"source_file": "incremental-materialized-view.md"}
[ -0.0076056174002587795, -0.07624471187591553, -0.013410433195531368, 0.08766300231218338, -0.049405742436647415, 0.0043618627823889256, 0.06440716981887817, -0.013701331801712513, -0.07716876268386841, 0.03869349882006645, 0.03477711230516434, -0.061303481459617615, 0.011825895868241787, -...
025ee4fd-2dbb-415e-b763-e20c21b043b0
```sql SELECT count() FROM up_down_votes_per_day FINAL ┌─count()─┐ │ 5723 │ └─────────┘ ``` We've effectively reduced the number of rows here from 238 million (in votes ) to 5000 by storing the result of our query. What's key here, however, is that if new votes are inserted into the votes table, new values wi...
{"source_file": "incremental-materialized-view.md"}
[ -0.04827408120036125, -0.046477776020765305, 0.011495950631797314, 0.047027405351400375, -0.10450085997581482, -0.02355649322271347, 0.028269914910197258, 0.03476322442293167, 0.0338696651160717, -0.015258670784533024, 0.05846792086958885, 0.030841674655675888, 0.04114373400807381, -0.0210...
8ba32712-feba-4a13-9789-69475f8aef9d
A more complex example {#a-more-complex-example} The above example uses Materialized Views to compute and maintain two sums per day. Sums represent the simplest form of aggregation to maintain partial states for - we can just add new values to existing values when they arrive. However, ClickHouse Materialized Views c...
{"source_file": "incremental-materialized-view.md"}
[ -0.09224919229745865, -0.05891801789402962, -0.030559713020920753, 0.09164872765541077, -0.09879864007234573, -0.019226444885134697, 0.005098484456539154, -0.029831554740667343, 0.02354176715016365, 0.021981172263622284, -0.02901509404182434, -0.050726182758808136, 0.04459453374147415, -0....
52256b23-6e50-40c0-9919-df73112bd720
Note how we append the suffix State to the end of our aggregate functions. This ensures the aggregate state of the function is returned instead of the final result. This will contain additional information to allow this partial state to merge with other states. For example, in the case of an average, this will includ...
{"source_file": "incremental-materialized-view.md"}
[ -0.055529240518808365, -0.027552569285035133, 0.016908323392271996, 0.08956271409988403, -0.10676150768995285, 0.034921880811452866, -0.006849970668554306, 0.04568975418806076, -0.006922535598278046, -0.022105494514107704, -0.0020534528885036707, -0.07845133543014526, 0.04483983293175697, ...
7b806f6f-3832-48c2-9eee-833f3fede8be
We could perform this transformation when running an INSERT INTO SELECT . The materialized view allows us to encapsulate this logic in ClickHouse DDL and keep our INSERT simple, with the transformation applied to any new rows. Our materialized view for this transformation is shown below: sql CREATE MATERIALIZE...
{"source_file": "incremental-materialized-view.md"}
[ -0.10839328914880753, -0.05386443808674812, -0.034643419086933136, 0.013981287367641926, -0.10746070742607117, -0.03186590597033501, -0.01617257669568062, -0.06388843059539795, 0.03279618173837662, -0.00242471881210804, 0.025210386142134666, 0.02253291942179203, 0.046114999800920486, -0.03...
a9667918-8c98-418d-b13e-ff0d6ce7f20d
0 rows in set. Elapsed: 5.163 sec. Processed 90.38 million rows, 17.25 GB (17.51 million rows/s., 3.34 GB/s.) ``` We can now use this View in a subquery to accelerate our previous query: ```sql SELECT avg(Score) FROM comments WHERE PostId IN ( SELECT PostId FROM comments_posts_users WHERE Us...
{"source_file": "incremental-materialized-view.md"}
[ -0.05282462388277054, -0.09368899464607239, -0.04652990400791168, 0.04941391944885254, -0.04672698676586151, -0.06525811553001404, -0.010127292945981026, -0.047238267958164215, 0.022770876064896584, 0.022306738421320915, -0.054088663309812546, 0.015128149650990963, 0.05420947074890137, -0....
a93e0b42-a616-4411-a137-da64daa0dcf8
CREATE TABLE users ( Id Int32, Reputation UInt32, CreationDate DateTime64(3, 'UTC'), DisplayName LowCardinality(String), LastAccessDate DateTime64(3, 'UTC'), Location LowCardinality(String), Views UInt32, UpVotes UInt32, DownVotes UInt32 ) ENGINE = MergeTree ORDER B...
{"source_file": "incremental-materialized-view.md"}
[ -0.0521392785012722, -0.04893776774406433, -0.03658987954258919, -0.024102337658405304, -0.08899513632059097, -0.0009505223133601248, 0.044307827949523926, -0.03484005481004715, -0.00016658194363117218, 0.025584125891327858, 0.04597160220146179, -0.06570720672607422, 0.04831705987453461, -...
86373864-b36d-4f81-9843-fcfe912ff3ce
Now, if this user receives a new badge and a row is inserted, our view will be updated: ```sql INSERT INTO badges VALUES (53505058, 2936484, 'gingerwizard', now(), 'Gold', 0); 1 row in set. Elapsed: 7.517 sec. SELECT * FROM daily_badges_by_user FINAL WHERE DisplayName = 'gingerwizard' ┌────────Day─┬──UserId─┬─Dis...
{"source_file": "incremental-materialized-view.md"}
[ -0.05902951955795288, -0.0189096387475729, 0.005295072216540575, 0.03675743564963341, -0.0537014901638031, 0.025864798575639725, 0.12335741519927979, -0.04793716222047806, -0.057771168649196625, -0.01347412820905447, 0.07627549767494202, -0.061203423887491226, 0.05588804557919502, -0.05788...
ef344545-2c54-49a1-995b-f2f927d56fea
Use the left-most table as the trigger. Only the table on the left side of the SELECT statement triggers the materialized view. Changes to right-side tables will not trigger updates. Pre-insert joined data. Ensure that data in joined tables exists before inserting rows into the source table. The JOIN is evalu...
{"source_file": "incremental-materialized-view.md"}
[ -0.018514292314648628, -0.025079168379306793, -0.027500325813889503, 0.036559440195560455, -0.08195879310369492, -0.011923201382160187, -0.04138853773474693, -0.01235063374042511, -0.04243961721658707, 0.028451744467020035, 0.03260781988501549, -0.03276309743523598, 0.06024343892931938, -0...
26b0ebbd-59a5-4cc3-b91d-7e53a32b94f4
In the above example, we have two Materialized Views mvw1 and mvw2 that perform similar operations but with a slight difference in how they reference the source table t0 . In mvw1 , table t0 is directly referenced inside a (SELECT * FROM t0) subquery on the right side of the JOIN. When data is inserted into...
{"source_file": "incremental-materialized-view.md"}
[ -0.09934733062982559, -0.026156283915042877, -0.005317657254636288, 0.03800068795681, -0.00384396780282259, -0.04160774499177933, -0.00038635393138974905, -0.030595043674111366, 0.06229378655552864, -0.029826637357473373, 0.026489153504371643, -0.003049681894481182, 0.07477640360593796, -0...
a82865f6-75ca-45e0-a130-e53814acd3c2
```sql INSERT INTO badges VALUES (53505058, 2936484, 'gingerwizard', now(), 'Gold', 0); 1 row in set. Elapsed: 7.517 sec. ``` Using the approach above, we can optimize this view. We'll add a filter to the users table using the user ids in the inserted badge rows: sql CREATE MATERIALIZED VIEW daily_badges_by_use...
{"source_file": "incremental-materialized-view.md"}
[ -0.026645321398973465, -0.007703088223934174, 0.0005223773187026381, 0.05987443029880524, -0.05158303305506706, 0.03264346346259117, 0.1126314178109169, -0.07493707537651062, -0.030526774004101753, -0.06661473214626312, 0.05414709076285362, -0.04702199995517731, 0.10960347205400467, -0.037...
38c27b93-09e5-4e2f-a535-06e69aa78230
Suppose we want to create a unified view of user activity, showing the last activity by each user by combining these two tables: sql SELECT UserId, argMax(description, event_time) AS last_description, argMax(activity_type, event_time) AS activity_type, max(event_time) AS last_activity FROM ( SELECT UserId...
{"source_file": "incremental-materialized-view.md"}
[ 0.014329703524708748, -0.08302903175354004, 0.02283845841884613, 0.015066283755004406, -0.047218795865774155, 0.02514456957578659, 0.055478621274232864, 0.042593661695718765, 0.007252588402479887, -0.026749294251203537, 0.0036671694833785295, -0.023549506440758705, 0.04542995244264603, -0....
b3e56bfd-0c05-4186-9e36-5d17da934d36
Inserts into the badges table will not trigger the view, causing user_activity to not receive updates: ```sql INSERT INTO badges VALUES (53505058, 2936484, 'gingerwizard', now(), 'Gold', 0); SELECT UserId, argMaxMerge(last_description) AS description, argMaxMerge(activity_type) AS activity_type, max(last...
{"source_file": "incremental-materialized-view.md"}
[ -0.04504009708762169, -0.10780434310436249, 0.04502027854323387, 0.03408291935920715, -0.051987774670124054, -0.008724387735128403, 0.09753865748643875, -0.019815005362033844, 0.013375671580433846, 0.019638001918792725, 0.07004421949386597, -0.033978261053562164, 0.10451848804950714, 0.002...
9175777b-2c98-4c7e-88a0-1e1f356390cd
As shown in the previous example, a table can act as the source for multiple Materialized Views. The order in which these are executed depends on the setting parallel_view_processing . By default, this setting is equal to 0 ( false ), meaning Materialized Views are executed sequentially in uuid order. For exam...
{"source_file": "incremental-materialized-view.md"}
[ -0.024470848962664604, -0.10137457400560379, -0.00694515835493803, 0.016760190948843956, -0.0122441491112113, -0.05585858225822449, -0.03803591430187225, -0.06959135830402374, 0.05475979670882225, 0.022397127002477646, 0.048331551253795624, -0.0065054576843976974, 0.04619878530502319, -0.0...
9d331c58-3345-4a9c-9629-60870367a613
3 rows in set. Elapsed: 0.004 sec. ``` Although our ordering of the arrival of rows from each view is the same, this is not guaranteed - as illustrated by the similarity of each row's insert time. Also note the improved insert performance. When to use parallel processing {#materialized-views-when-to-use-parallel} ...
{"source_file": "incremental-materialized-view.md"}
[ -0.05915999040007591, -0.08647170662879944, -0.06399662047624588, -0.019334940239787102, -0.04457477107644081, -0.04815296083688736, -0.10375254601240158, -0.03359764814376831, 0.07193631678819656, 0.03865427151322365, 0.013644699938595295, -0.002173167420551181, 0.03729168698191643, -0.03...
c224d43c-1daa-4e04-ab3f-4873298eaa7a
CREATE MATERIALIZED VIEW daily_post_activity_mv TO daily_post_activity AS WITH filtered_posts AS ( SELECT toDate(CreationDate) AS Day, PostTypeId, Score, ViewCount FROM posts WHERE Score > 0 AND PostTypeId IN (1, 2) -- Question or Answer ) SELECT Day, CASE PostTypeId WHEN 1 THEN 'Questi...
{"source_file": "incremental-materialized-view.md"}
[ -0.003974011167883873, -0.09900426864624023, -0.015917297452688217, 0.028752967715263367, -0.07906835526227951, 0.003621116280555725, 0.027913138270378113, -0.03158029168844223, -0.022003691643476486, 0.04685370996594429, 0.020304163917899132, -0.11532411724328995, 0.04743319749832153, 0.0...
7f31e49e-ef97-461e-b310-4e0513593dcb
sql WITH recent_users AS ( SELECT Id FROM stackoverflow.users WHERE CreationDate > now() - INTERVAL 7 DAY ) SELECT * FROM stackoverflow.posts WHERE OwnerUserId IN (SELECT Id FROM recent_users) In this case, the users CTE is re-evaluated on every insert into posts, and the materialized view will not update when new ...
{"source_file": "incremental-materialized-view.md"}
[ -0.057173702865839005, -0.03354649245738983, 0.03493558242917061, 0.023831257596611977, -0.07383593171834946, -0.0047648148611187935, 0.03605641424655914, -0.03642386570572853, -0.03309816122055054, 0.00955772865563631, 0.022531665861606598, -0.03090011700987816, 0.011823931708931923, -0.0...
db8eabff-02cb-4aa2-bb5b-363de42302ff
slug: /materialized-views title: 'Materialized Views' description: 'Index page for materialized views' keywords: ['materialized views', 'speed up queries', 'query optimization', 'refreshable', 'incremental'] doc_type: 'landing-page' | Page ...
{"source_file": "index.md"}
[ -0.027871761471033096, 0.0037415518891066313, 0.01404921431094408, 0.024297252297401428, -0.05937086045742035, -0.03976445272564888, -0.030478600412607193, -0.0412786528468132, 0.04331357777118683, 0.035881608724594116, -0.005260490346699953, 0.001955127576366067, 0.013210233300924301, -0....
f13a924d-754f-4fca-8cf9-e9e4f7ff6949
sidebar_position: 1 slug: /tips-and-tricks/community-wisdom sidebar_label: 'Community wisdom' doc_type: 'landing-page' keywords: [ 'database tips', 'community wisdom', 'production troubleshooting', 'performance optimization', 'database debugging', 'clickhouse guides', 'real world examples', 'database be...
{"source_file": "community-wisdom.md"}
[ -0.02529166266322136, -0.024892734363675117, 0.01583944819867611, 0.04785041883587837, 0.028426973149180412, -0.015614300966262817, 0.0511590801179409, 0.014677637256681919, -0.1000826433300972, -0.010195418260991573, 0.07044966518878937, 0.048291873186826706, 0.04953194409608841, -0.02978...
5e4835c6-8883-4e69-9768-0abf03aa7d1c
sidebar_position: 1 slug: /community-wisdom/cost-optimization sidebar_label: 'Cost optimization' doc_type: 'guide' keywords: [ 'cost optimization', 'storage costs', 'partition management', 'data retention', 'storage analysis', 'database optimization', 'clickhouse cost reduction', 'storage hot spots', ...
{"source_file": "cost-optimization.md"}
[ -0.058929964900016785, 0.0605345144867897, -0.0529918372631073, 0.03883548080921173, 0.03407749906182289, -0.04511174559593201, -0.016070807352662086, 0.03554447740316391, -0.043756067752838135, 0.06679584830999374, -0.036728452891111374, 0.051244452595710754, 0.048251792788505554, 0.02847...
580414c3-0878-43be-8d84-0e01d248f272
This data-driven approach enables strategic decisions about retention policies and column lifecycle management. By analyzing this telemetry data, Microsoft can identify storage hot spots - columns that consume significant space but receive minimal queries. For these low-usage columns, they can implement aggressive rete...
{"source_file": "cost-optimization.md"}
[ -0.05150957405567169, 0.04351894557476044, -0.00030390010215342045, 0.041919149458408356, 0.027459751814603806, -0.06611012667417526, 0.012165130116045475, 0.010291824117302895, 0.04247452691197395, 0.053610287606716156, -0.015628403052687645, 0.09455341100692749, 0.013792915269732475, -0....
d345047b-8efb-4dd7-9d16-961a17d2bd75
This architecture preserves the user experience - people still see meaningful labels like weather_answer in their dashboards - while the backend storage and queries operate on much more efficient integers. The mapping system handles all translation transparently, requiring no changes to the user interface or user wor...
{"source_file": "cost-optimization.md"}
[ 0.0059984708204865456, -0.026839088648557663, -0.08165254443883896, -0.012172380462288857, 0.009321790188550949, -0.023627007380127907, 0.04317627474665642, -0.01615259423851967, 0.04915029555559158, 0.008577628992497921, -0.05043339729309082, -0.001081976224668324, -0.0031914347782731056, ...
c1ab0de1-4fff-4a51-ba75-2e073444fe4f
sidebar_position: 1 slug: /community-wisdom/creative-use-cases sidebar_label: 'Success stories' doc_type: 'guide' keywords: [ 'clickhouse creative use cases', 'clickhouse success stories', 'unconventional database uses', 'clickhouse rate limiting', 'analytics database applications', 'clickhouse mobile analy...
{"source_file": "success-stories.md"}
[ -0.012979856692254543, -0.021186217665672302, -0.05672093853354454, 0.01677878201007843, 0.01702585443854332, -0.051583871245384216, 0.042515333741903305, 0.02449178323149681, -0.08979339152574539, 0.031820133328437805, 0.0767817497253418, 0.0280856154859066, 0.05310263857245445, 0.0153049...
d524cafd-9d55-412b-b48a-deb135f2d3b8
So when Brad was approached with the rate limiting requirements, he took a different approach: "I asked my boss, 'What do you think of this idea? Maybe I can try this with ClickHouse?'" The idea was unconventional - using an analytical database for what's typically a caching layer problem - but it addressed their cor...
{"source_file": "success-stories.md"}
[ -0.08837074786424637, -0.028048021718859673, -0.08352094888687134, 0.06353989243507385, -0.027677539736032486, -0.07979724556207657, -0.03964605554938316, -0.018760088831186295, 0.06252384930849075, 0.026524880900979042, -0.016155635938048363, 0.020462660118937492, 0.035465843975543976, -0...
bcefd1f3-ea64-4971-a53d-517073f4a1e6
So when the limitations became clear, ServiceNow moved to ClickHouse and eliminated these pre-computation constraints entirely. Instead of calculating every variable upfront, they broke metadata into data points and inserted everything directly into ClickHouse. They used ClickHouse's async insert queue, which Amir call...
{"source_file": "success-stories.md"}
[ -0.10089728236198425, -0.0464971661567688, -0.06603214144706726, -0.01900666393339634, -0.029322821646928787, -0.03213370591402054, 0.03713501989841461, -0.03153528273105621, -0.008701063692569733, 0.006453829817473888, 0.022892862558364868, 0.08275806903839111, 0.04740027338266373, 0.0477...
959b5cdc-5d69-4836-bb18-de82ee997e72
sidebar_position: 1 slug: /community-wisdom/debugging-insights sidebar_label: 'Debugging insights' doc_type: 'guide' keywords: [ 'clickhouse troubleshooting', 'clickhouse errors', 'slow queries', 'memory problems', 'connection issues', 'performance optimization', 'database errors', 'configuration probl...
{"source_file": "debugging-insights.md"}
[ -0.0010242459829896688, -0.02903490513563156, -0.03164130076766014, 0.08083399385213852, 0.022092405706644058, -0.09548729658126831, 0.039201393723487854, 0.014162278734147549, -0.09984143078327179, 0.041785310953855515, 0.027455607429146767, -0.0052236528135836124, 0.018131906166672707, -...
188e4918-8c21-488f-b766-1131df95fa68
AWS users should be aware that default general purpose EBS volumes have a 16TB limit. Too many parts error {#too-many-parts-error} Small frequent inserts create performance problems. The community has identified that insert rates above 10 per second often trigger "too many parts" errors because ClickHouse cannot me...
{"source_file": "debugging-insights.md"}
[ -0.030216297134757042, 0.013925331644713879, -0.03331432119011879, 0.02269619144499302, -0.029555125162005424, -0.05009883642196655, -0.10272186994552612, 0.009751125238835812, 0.02502499893307686, 0.07897046208381653, 0.008446451276540756, -0.02700534649193287, 0.018661655485630035, -0.06...
0d3cf0ab-ca2a-41de-b320-e2ba1c1d5a38
Related docs - Custom partitioning key Quick reference {#quick-reference} | Issue | Detection | Solution | |-------|-----------|----------| | Disk Space | Check system.parts total bytes | Monitor usage, plan scaling | | Too Many Parts | Count parts per table | Batch inserts, enable async_insert | | Replication ...
{"source_file": "debugging-insights.md"}
[ -0.0711565837264061, -0.07146431505680084, -0.037270478904247284, -0.040667757391929626, 0.03447239100933075, -0.07505610585212708, -0.008489533327519894, 0.06031368672847748, -0.02457187883555889, 0.023801438510417938, 0.05956608057022095, 0.013296286575496197, 0.01734057441353798, -0.003...
686f808e-65eb-4650-b462-f7f3cbf3a5eb
sidebar_position: 1 slug: /tips-and-tricks/too-many-parts sidebar_label: 'Too many parts' doc_type: 'guide' keywords: [ 'clickhouse too many parts', 'too many parts error', 'clickhouse insert batching', 'part explosion problem', 'clickhouse merge performance', 'batch insert optimization', 'clickhouse asyn...
{"source_file": "too-many-parts.md"}
[ -0.001263154437765479, 0.026322362944483757, 0.011839918792247772, 0.02833402343094349, 0.010771012865006924, -0.0474635548889637, 0.012921524234116077, 0.02144896425306797, -0.11838695406913757, -0.0056424494832754135, 0.013940460979938507, 0.04364224895834923, 0.05162312835454941, -0.033...
81cc45f6-b606-47bd-b0b8-456c5361541c
sql runnable editable -- Challenge: Replace with your actual database and table names for production use -- Experiment: Adjust the part count thresholds (1000, 500, 100) based on your system SELECT database, table, count() as total_parts, sum(rows) as total_rows, round(avg(rows), 0) as avg_rows_per...
{"source_file": "too-many-parts.md"}
[ 0.08188372850418091, 0.013236324302852154, 0.002126244129613042, 0.02910914458334446, -0.021736226975917816, -0.07013145089149475, 0.002820064779371023, 0.08518979698419571, -0.0797203853726387, 0.06756678968667984, -0.018495960161089897, -0.08831583708524704, 0.07429709285497665, 0.006520...
e0790536-b12c-4885-ac13-41713bc8ea1a
sidebar_position: 1 slug: /community-wisdom/performance-optimization sidebar_label: 'Performance optimization' doc_type: 'guide' keywords: [ 'performance optimization', 'query performance', 'database tuning', 'slow queries', 'memory optimization', 'cardinality analysis', 'indexing strategies', 'aggregat...
{"source_file": "performance-optimization.md"}
[ 0.016050666570663452, -0.0218935739248991, -0.06689304858446121, 0.04382568597793579, -0.0232944767922163, -0.04005080834031105, -0.005448159296065569, -0.011813927441835403, -0.09066696465015411, 0.013604474253952503, -0.041385892778635025, 0.06867670267820358, 0.04284491762518883, -0.029...
7df62d80-0ecc-4a73-bf78-5d68ba513c07
Focus on individual queries, not averages {#focus-on-individual-queries-not-averages} When debugging ClickHouse performance, don't rely on average query times or overall system metrics. Instead, identify why specific queries are slow. A system can have good average performance while individual queries suffer from mem...
{"source_file": "performance-optimization.md"}
[ 0.07094161957502365, -0.014268563129007816, -0.04088076204061508, 0.07016738504171371, 0.004064554814249277, -0.10095702856779099, 0.06339855492115021, 0.03190175071358681, 0.03217717632651329, 0.033951129764318466, -0.06787959486246109, 0.004689852241426706, 0.022911805659532547, -0.02155...
2c7d2451-f57b-4d70-a2bc-815204b2ffcb
SELECT your_grouping_column, -- Each sumIf creates exactly one integer counter per group -- Memory stays constant regardless of how many rows match each condition sumIf(1, your_condition_1) as condition_1_count, sumIf(1, your_condition_2) as condition_2_count, sumIf(1, your_text_column LIKE '%pattern%') as patte...
{"source_file": "performance-optimization.md"}
[ -0.002513972343876958, 0.016378847882151604, -0.03419838100671768, 0.06764642149209976, -0.033356569707393646, 0.06535991281270981, 0.03171044960618019, 0.0702846348285675, -0.02098371647298336, 0.00958303827792406, 0.06326041370630264, -0.10688512027263641, 0.05039997398853302, -0.0146193...
8543abac-122b-49c4-b823-43f768e7921a
sidebar_position: 1 slug: /tips-and-tricks/materialized-views sidebar_label: 'Materialized views' doc_type: 'guide' keywords: [ 'clickhouse materialized views', 'materialized view optimization', 'materialized view storage issues', 'materialized view best practices', 'database aggregation patterns', 'materia...
{"source_file": "materialized-views.md"}
[ -0.03606022149324417, -0.04309059679508209, -0.014761448837816715, 0.04094161093235016, -0.03054601140320301, -0.0490458644926548, -0.045675333589315414, 0.020353222265839577, -0.062401384115219116, 0.056959547102451324, 0.012530410662293434, 0.06079613044857979, 0.051766932010650635, 0.00...
ee964cd9-5ae4-46a1-8842-50c42b9f1751
You can compare insert performance before and after adding MVs using system.query_log to track query duration trends. Video sources {#video-sources} ClickHouse at CommonRoom - Kirill Sapchuk - Source of the "over enthusiastic about materialized views" and "20GB→190GB explosion" case study
{"source_file": "materialized-views.md"}
[ 0.042950551956892014, -0.11835603415966034, -0.09452693164348602, 0.009738889522850513, 0.027451425790786743, -0.006543392315506935, -0.05492054671049118, 0.015310370363295078, 0.06687664240598679, 0.029045283794403076, 0.01585976593196392, 0.034756824374198914, 0.04753350093960762, -0.016...
b64a2f30-665f-4e9a-9f15-e91b0b2821e1
slug: /whats-new/security-changelog sidebar_position: 20 sidebar_label: 'Security changelog' title: 'Security changelog' description: 'Security changelog detailing security related updates and changes' doc_type: 'changelog' keywords: ['security', 'CVE', 'vulnerabilities', 'security fixes', 'patches'] Security chang...
{"source_file": "security-changelog.md"}
[ -0.0857997015118599, 0.02224252000451088, -0.013190210796892643, -0.01763995923101902, 0.051238883286714554, -0.061630576848983765, -0.03235777094960213, -0.013061683624982834, 0.008950592018663883, 0.0564071424305439, 0.0009099669987335801, 0.035127222537994385, 0.06338632851839066, -0.00...
f9c44301-0975-4ed2-bf0d-c6eb0e80f6f9
Fixed in ClickHouse v23.10.5.20, 2023-11-26 {#fixed-in-clickhouse-release-23-10-5-20-2023-11-26} CVE-2023-47118 {#CVE-2023-47118} A heap buffer overflow vulnerability affecting the native interface running by default on port 9000/tcp. An attacker, by triggering a bug in the T64 compression codec, can cause the Cli...
{"source_file": "security-changelog.md"}
[ -0.0955076813697815, 0.0663544312119484, -0.010402369312942028, -0.0435824953019619, 0.024742651730775833, -0.058855075389146805, -0.05319364368915558, -0.004139609634876251, -0.006604932714253664, 0.013040569610893726, -0.0024328858125954866, 0.0056744907051324844, -0.024967188015580177, ...
995b1255-5233-4cf8-96fb-8af340327aca
Credits: Kiojj (independent researcher) Fixed in ClickHouse 21.10.2.15, 2021-10-18 {#fixed-in-clickhouse-release-21-10-2-215-2021-10-18} CVE-2021-43304 {#cve-2021-43304} Heap buffer overflow in ClickHouse's LZ4 compression codec when parsing a malicious query. There is no verification that the copy operations in ...
{"source_file": "security-changelog.md"}
[ -0.07475423067808151, 0.013734914362430573, -0.03412775322794914, -0.023281777277588844, 0.06248174607753754, -0.08099224418401718, -0.010894405655562878, -0.0031139284837991, -0.03290216997265816, 0.008682860992848873, -0.014004251919686794, 0.035660210996866226, 0.012465318664908409, -0....
fab60510-10db-46dc-97c0-ab7b6105dd02
CVE-2021-25263 {#cve-2021-25263} An attacker that has CREATE DICTIONARY privilege, can read arbitary file outside permitted directory. Fix has been pushed to versions 20.8.18.32-lts, 21.1.9.41-stable, 21.2.9.41-stable, 21.3.6.55-lts, 21.4.3.21-stable and later. Credits: Vyacheslav Egoshin Fixed in ClickHouse R...
{"source_file": "security-changelog.md"}
[ -0.13515174388885498, 0.030522922053933144, -0.07852574437856674, -0.04078583046793938, 0.04929758608341217, -0.06754757463932037, 0.01187771838158369, 0.04747553914785385, 0.019109327346086502, 0.057844676077365875, 0.029673142358660698, 0.012147007510066032, 0.06698352098464966, 0.065524...
94808bd4-02e8-4191-b2d9-01bdb300d3a7
Credits: Andrey Krasichkov and Evgeny Sidorov of Yandex Information Security Team Fixed in ClickHouse Release 1.1.54131, 2017-01-10 {#fixed-in-clickhouse-release-1-1-54131-2017-01-10} CVE-2018-14670 {#cve-2018-14670} Incorrect configuration in deb package could lead to the unauthorized use of the database. Cred...
{"source_file": "security-changelog.md"}
[ -0.05895031616091728, -0.08801126480102539, -0.014415748417377472, -0.03144139051437378, -0.013913667760789394, -0.0367547944188118, 0.04085952788591385, -0.04513046145439148, -0.0343465656042099, 0.0275344867259264, 0.028893981128931046, 0.021733442321419716, 0.09203654527664185, 0.023548...
da163578-cb93-474c-8611-560c6468b333
title: 'Roadmap' slug: /whats-new/roadmap sidebar_position: 50 description: 'Present and past ClickHouse road maps' doc_type: 'landing-page' keywords: ['roadmap', 'future features', 'development plans', 'upcoming releases', 'product direction'] Current roadmap {#current-roadmap} The current roadmap is published f...
{"source_file": "roadmap.md"}
[ 0.028785238042473793, 0.006868173833936453, 0.10384076833724976, -0.04591676965355873, 0.04001202806830406, -0.0018263529054820538, -0.050142087042331696, -0.024290472269058228, -0.09649971127510071, 0.019342394545674324, -0.041380226612091064, -0.0025765658356249332, -0.013143979012966156, ...
4d56c9fd-7526-466f-85c8-53cf527b769f
sidebar_position: 1 sidebar_label: 'Beta Features and Experimental' title: 'Beta and Experimental Features' description: 'ClickHouse has beta and experimental features. This documentation page discusses definition.' slug: /beta-and-experimental-features doc_type: 'reference' Because ClickHouse is open-source, it re...
{"source_file": "beta-and-experimental-features.md"}
[ -0.03160494565963745, -0.07037194073200226, 0.04774373397231102, 0.04109795764088631, 0.07454472035169601, -0.001931319828145206, -0.022555768489837646, -0.06289716064929962, -0.07919127494096756, -0.006136992946267128, 0.008608951233327389, 0.037990447133779526, -0.008979793637990952, -0....
14ea5eab-93a3-4659-a201-e15ed604c331
Please note: no additional experimental features are allowed to be enabled in ClickHouse Cloud other than those listed above as Beta. Beta settings {#beta-settings} | Name | Default | |------|--------| | geotoh3_argument_order | lat_lon | | enable_lightweight_update | 1 | | allow_experimental_correlate...
{"source_file": "beta-and-experimental-features.md"}
[ -0.008685342967510223, -0.11128418147563934, -0.03617721050977707, 0.010410496033728123, -0.00816948153078556, -0.011400304734706879, -0.08539047837257385, -0.07509829849004745, -0.09042853116989136, 0.06107461079955101, 0.044994328171014786, -0.004801151342689991, 0.018572960048913956, -0...
7142cd18-34f4-4c4a-a4aa-5e78e15ee822
| Name | Default | |------|--------| | allow_experimental_replacing_merge_with_cleanup | 0 | | allow_experimental_reverse_key | 0 | | allow_remote_fs_zero_copy_replication | 0 | | enable_replacing_merge_with_cleanup_for_min_age_to_force_merge | 0 | | force_read_through_cache_for_merges | 0 | | merg...
{"source_file": "beta-and-experimental-features.md"}
[ 0.023727264255285263, -0.027213020250201225, -0.04124777019023895, 0.007102231960743666, 0.032925285398960114, -0.04194081202149391, -0.033182062208652496, -0.014658798463642597, -0.040753625333309174, 0.07403174042701721, 0.08910569548606873, -0.0008595703984610736, 0.03974209353327751, -...
c3999fc8-d294-4bbf-826d-5347fe6b2505
| 0 | | allow_experimental_database_materialized_postgresql | 0 | | allow_experimental_qbit_type | 0 | | allow_experimental_query_deduplication | 0 | | allow_experimental_database_hms_catalog | 0 | | allow_experimental_kusto_dialect | 0 | | allow_experimental_prql_dialect | 0 | | enable_adapt...
{"source_file": "beta-and-experimental-features.md"}
[ 0.020686348900198936, -0.03134728968143463, -0.07937055826187134, 0.05788496136665344, -0.04853639379143715, -0.046000365167856216, -0.07307197898626328, 0.010273292660713196, -0.05347856506705284, 0.05258307605981827, 0.04743065685033798, -0.013563845306634903, 0.047075606882572174, -0.09...
a4ac9170-768c-4d83-9c4a-8590c8a09e9c
title: 'FAQ' slug: /about-us/faq description: 'Landing page' doc_type: 'landing-page' keywords: ['ClickHouse FAQ', 'frequently asked questions', 'common questions', 'help documentation', 'troubleshooting'] | FAQ ...
{"source_file": "about-faq-index.md"}
[ -0.03245869651436806, -0.03775516152381897, -0.10673926025629044, 0.02102111279964447, -0.004845361225306988, -0.03275933489203453, 0.04624898359179497, 0.035549577325582504, -0.05313648656010628, -0.04447798803448677, 0.026707107201218605, -0.041081350296735764, 0.054383449256420135, -0.0...
c36006d5-bea3-4f75-b3b3-dd0b0f70edd5
slug: /about-us/history sidebar_label: 'ClickHouse history' sidebar_position: 40 description: 'History of ClickHouse development' keywords: ['history','development','Metrica'] title: 'ClickHouse History' doc_type: 'reference' ClickHouse history {#clickhouse-history} ClickHouse was initially developed to power Ya...
{"source_file": "history.md"}
[ -0.05821554735302925, -0.06573490053415298, -0.05195927992463112, 0.05183420702815056, -0.041061099618673325, -0.022192660719156265, -0.000707963656168431, -0.0020347191020846367, 0.005074209999293089, 0.009094622917473316, -0.0028579062782227993, 0.00579648744314909, 0.05290453881025314, ...
2754be1b-7a3d-4afe-9077-0b48cc7dad1c
For a large number of reports, there are too many aggregation variations (combinatorial explosion). When aggregating keys with high cardinality (such as URLs), the volume of data is not reduced by much (less than twofold). For this reason, the volume of data with aggregation might grow instead of shrink. Users do...
{"source_file": "history.md"}
[ -0.050706781446933746, 0.004162949044257402, -0.05907796323299408, 0.08412083983421326, -0.045015908777713776, -0.02669885754585266, -0.09728594869375229, 0.12496652454137802, 0.11116928607225418, 0.024511486291885376, -0.037628352642059326, 0.06538926064968109, 0.05332993343472481, 0.0153...
3fd090be-10bc-4efd-89de-d9e3b772dd28
slug: /about-us/distinctive-features sidebar_label: 'Why is ClickHouse unique?' sidebar_position: 50 description: 'Understand what makes ClickHouse stand apart from other database management systems' title: 'Distinctive Features of ClickHouse' keywords: ['compression', 'secondary-indexes','column-oriented'] doc_type: '...
{"source_file": "distinctive-features.md"}
[ 0.013843139633536339, -0.0030099889263510704, -0.09810436517000198, 0.0360453799366951, -0.016242720186710358, -0.04414655268192291, 0.003111679572612047, 0.029639989137649536, -0.002128880238160491, -0.01474924385547638, 0.016429606825113297, 0.044258005917072296, 0.05888274312019348, -0....
25df7ff7-a677-4474-b983-6175184e7bde
Distributed processing on multiple servers {#distributed-processing-on-multiple-servers} Almost none of the columnar DBMSs mentioned above have support for distributed query processing. In ClickHouse, data can reside on different shards. Each shard can be a group of replicas used for fault tolerance. All shards are...
{"source_file": "distinctive-features.md"}
[ -0.04869299381971359, -0.09742993861436844, -0.049159225076436996, 0.03225591778755188, -0.06296224892139435, -0.11119682341814041, -0.03488246724009514, -0.03809994459152222, -0.004965411499142647, 0.05440631881356239, -0.05208471044898033, 0.08724330365657806, 0.06728909909725189, -0.061...
9dd15a14-4dae-4124-a3b1-f66906cd93d0
Running a query based on a part ( SAMPLE ) of data and getting an approximated result. In this case, proportionally less data is retrieved from the disk. Running an aggregation for a limited number of random keys, instead of for all keys. Under certain conditions for key distribution in the data, this provides a reas...
{"source_file": "distinctive-features.md"}
[ -0.05986860394477844, -0.03294777870178223, -0.03810715675354004, 0.02494775876402855, -0.04582934081554413, -0.11771734803915024, 0.009096667170524597, -0.0009187165414914489, 0.01745857112109661, 0.01228434406220913, 0.009606223553419113, 0.09987074136734009, 0.1354176551103592, -0.09955...
f92fa725-cd92-4ff6-b4d1-e3d4962dcf63
slug: /about-us/support sidebar_label: 'Support' title: 'ClickHouse Cloud support services' sidebar_position: 30 description: 'Information on ClickHouse Cloud support services' doc_type: 'reference' keywords: ['support', 'help', 'customer service', 'technical support', 'service level agreement'] ClickHouse Cloud su...
{"source_file": "support.md"}
[ -0.024548344314098358, -0.10563115030527115, 0.012526393868029118, -0.032680444419384, 0.06038752943277359, 0.006934285629540682, 0.013004399836063385, -0.06459399312734604, -0.024702757596969604, -0.0005770925781689584, 0.030165676027536392, 0.003814869560301304, 0.00554584339261055, 0.01...
7e2fb02d-442d-46c9-9680-9962f3918c5e
slug: /about-us/cloud sidebar_label: 'Cloud service' sidebar_position: 10 description: 'ClickHouse Cloud' title: 'ClickHouse Cloud' keywords: ['ClickHouse Cloud', 'cloud database', 'managed ClickHouse', 'serverless database', 'cloud OLAP'] doc_type: 'reference' ClickHouse Cloud ClickHouse Cloud is the cloud offer...
{"source_file": "cloud.md"}
[ -0.00110140151809901, -0.048192840069532394, 0.025849053636193275, 0.04591972380876541, 0.02892555296421051, -0.038482844829559326, -0.00400141254067421, -0.005932110361754894, -0.01600339263677597, 0.036302175372838974, 0.023502301424741745, 0.00684518925845623, 0.04410523548722267, -0.06...
94655043-5bb3-4b52-83c1-e874513e11a8
slug: /about title: 'About ClickHouse' description: 'Landing page for About ClickHouse' doc_type: 'landing-page' keywords: ['about', 'overview', 'introduction'] About ClickHouse In this section of the docs you'll find information about ClickHouse. Refer to the table of contents below for a list of pages in this s...
{"source_file": "index.md"}
[ 0.01976652443408966, 0.002104860730469227, 0.024537665769457817, -0.0010547476122155786, -0.024727458134293556, -0.012061257846653461, 0.004885191563516855, -0.032868891954422, -0.028839562088251114, -0.01730312407016754, 0.004603515844792128, 0.02131686545908451, 0.013867751695215702, -0....
799ae559-2fdb-45b3-9bf0-9ee8c43e25a3
slug: /about-us/adopters sidebar_label: 'Adopters' title: 'ClickHouse Adopters' sidebar_position: 60 description: 'A list of companies using ClickHouse and their success stories' keywords: ['ClickHouse adopters', 'success stories', 'case studies', 'company testimonials', 'ClickHouse users'] doc_type: 'reference' Th...
{"source_file": "adopters.md"}
[ -0.0123792365193367, -0.09164377301931381, -0.030971886590123177, 0.007422205992043018, -0.005118554458022118, 0.009735481813549995, -0.0158305112272501, -0.042981334030628204, -0.08975403755903244, -0.05757592245936394, 0.09831323474645615, 0.03769474849104881, 0.0019228277960792184, -0.0...
59477815-a720-4c74-9d60-afec1c5ef37e
| Company | Industry | Use case | Reference ...
{"source_file": "adopters.md"}
[ 0.013157522305846214, 0.0220977570861578, -0.06583824753761292, 0.03985651582479477, -0.054467059671878815, -0.043848007917404175, -0.04584987461566925, 0.0007972850580699742, -0.034657612442970276, -0.026924356818199158, 0.03354835510253906, 0.02230256423354149, 0.01887505128979683, -0.08...
9f634ab2-63d6-44ae-96ab-f2edf723180e
| [2gis](https://2gis.ru) | Maps | Monitoring | [Talk in Russian, July 2019](https://youtu.be/58sPkXfq6nw) ...
{"source_file": "adopters.md"}
[ -0.02231455035507679, -0.08850543946027756, -0.010657784529030323, 0.014854214154183865, 0.09805767983198166, -0.02732159197330475, 0.015366202220320702, -0.056539759039878845, -0.06271905452013016, -0.025996999815106392, 0.002440875396132469, 0.004978420212864876, -0.0458405539393425, 0.0...
57400430-b583-4481-9d66-bbfbcc728360
| [ABTasty](https://www.abtasty.com/) | Web Analytics | Analytics | [Paris Meetup, March 2024](https://www.meetup.com/clickhouse-france-user-group/events/298997115/) ...
{"source_file": "adopters.md"}
[ -0.058045852929353714, -0.0003105479700025171, -0.0529603511095047, -0.000056961704103741795, 0.0685337707400322, -0.03672722354531288, -0.00028547990950755775, -0.008692842908203602, -0.011155680753290653, -0.03830602392554283, -0.01232371386140585, -0.04907757788896561, -0.0595377832651138...
d6846404-54c7-4041-9848-1a4ae3069064
| [AdGreetz](https://www.adgreetz.com/) | Software & Technology | AdTech & MarTech | [Blog, April 2023](https://clickhouse.com/blog/adgreetz-processes-millions-of-daily-ad-impressions) ...
{"source_file": "adopters.md"}
[ -0.10825017839670181, -0.060257114470005035, -0.030052529647946358, -0.01607019454240799, 0.02426912821829319, -0.11855967342853546, 0.04116459935903549, -0.014287428930401802, -0.03667917102575302, -0.020017080008983612, -0.008987223729491234, 0.05910684913396835, -0.040652163326740265, -...
d69534a3-cb83-42e6-8b43-5d369062fe92
| [Adapty](https://adapty.io/) | Subscription Analytics | Main product | [Twitter, November 2021](https://twitter.com/iwitaly/status/1462698148061659139) ...
{"source_file": "adopters.md"}
[ -0.10769595205783844, -0.07738947123289108, -0.06673494726419449, 0.05969750136137009, 0.04380341246724129, -0.00871638860553503, 0.009082481265068054, -0.03250356391072273, -0.06009184569120407, -0.0033201423939317465, 0.019717883318662643, 0.02660413831472397, -0.018333198502659798, 0.03...
619f5171-e1a3-44dc-9c1f-f8d555e3eb0c
| [Admixer](https://admixer.com/) | Media & Entertainment | Ad Analytics | [Blog Post](https://clickhouse.com/blog/admixer-aggregates-over-1-billion-unique-users-a-day-using-clickh...
{"source_file": "adopters.md"}
[ -0.08287985622882843, -0.05949792638421059, -0.0628959909081459, 0.07953046262264252, 0.06164739653468132, -0.07238883525133133, 0.027688076719641685, 0.004979515448212624, -0.08139830082654953, -0.010902742855250835, 0.025359952822327614, 0.0013808644143864512, 0.0376705601811409, 0.00594...
d049a268-d4b7-4e2c-b50e-d6b859a94c73
| [Airfold](https://www.airfold.co/) | API platform | Main Product | [Documentation](https://docs.airfold.co/workspace/pipes) ...
{"source_file": "adopters.md"}
[ -0.08848760277032852, -0.05920391157269478, -0.02919015847146511, -0.016492484137415886, 0.05726471543312073, -0.05390189215540886, 0.013340494595468044, 0.03357846662402153, -0.057774562388658524, 0.0030577818397432566, 0.058828115463256836, 0.03582347184419632, -0.004485825542360544, -0....
dc4c6217-37ca-413a-abcf-d82bc8b0983b
| [Akvorado](https://demo.akvorado.net/) | Network Monitoring | Main Product | [Documentation](https://demo.akvorado.net/docs/intro) ...
{"source_file": "adopters.md"}
[ -0.0419536791741848, -0.013595771044492722, -0.02670881897211075, -0.012257194146513939, 0.06943759322166443, -0.07855566591024399, -0.01726921834051609, -0.07380189001560211, 0.012795377522706985, 0.046127330511808395, 0.019047770649194717, -0.007285335101187229, -0.00228550611063838, -0....
79636558-15d3-4808-9d3d-7f4e1e273448
| [Alibaba Cloud](https://cn.aliyun.com/) | Cloud | E-MapReduce | [Official Website](https://help.aliyun.com/document_detail/212195.html) ...
{"source_file": "adopters.md"}
[ -0.0638907253742218, -0.0229775533080101, -0.02079598419368267, -0.005268475506454706, 0.005981919821351767, 0.019216228276491165, -0.03841733559966087, -0.009073380380868912, -0.03262823075056076, -0.03097711130976677, 0.0782635509967804, 0.038398001343011856, -0.010123669169843197, -0.04...
f507e361-7528-4e56-ac96-a30b760e1e71
| [Altinity](https://altinity.com/) | Cloud, SaaS | Main product | [Official Website](https://altinity.com/) ...
{"source_file": "adopters.md"}
[ -0.0445404127240181, -0.08092357963323593, -0.06965412944555283, 0.012006458826363087, 0.005811602342873812, 0.041454385966062546, -0.0033411940094083548, 0.012470710091292858, -0.060962289571762085, 0.007383286952972412, -0.028330132365226746, 0.06126544624567032, -0.036365896463394165, 0...
1784f105-ddf9-4284-a4cd-9a37beea3778
| [Android Hub](https://bestforandroid.com/) | Blogging, Analytics, Advertising data | — | [Official Website](https://bestforandroid.com/) ...
{"source_file": "adopters.md"}
[ -0.07756773382425308, -0.04776543006300926, 0.014437351375818253, -0.050830863416194916, 0.09406234323978424, -0.04351164400577545, -0.04349394515156746, 0.050756826996803284, -0.01579497940838337, 0.0031576023902744055, 0.013572586700320244, 0.03735220432281494, 0.05528479814529419, 0.006...
3e7d302d-61a7-4ee8-8370-8b7ff342b2b8
| [Antrea](https://antrea.io/) | Software & Technology | Kubernetes Network Security | [Documentation](https://antrea.io/docs/main/docs/network-flow-visibility/) ...
{"source_file": "adopters.md"}
[ -0.04522667080163956, -0.020238520577549934, 0.009417347609996796, -0.024339670315384865, 0.06813524663448334, -0.023512786254286766, -0.023596571758389473, -0.04163160175085068, -0.02503390982747078, 0.025615638121962547, -0.020905639976263046, 0.0032632937654852867, -0.053518518805503845, ...
d1a76319-74f2-4e0a-89b3-0338ba231917
| [Appsflyer](https://www.appsflyer.com) | Mobile analytics | Main product | [Talk in Russian, July 2019](https://www.youtube.com/watch?v=M3wbRlcpBbY) ...
{"source_file": "adopters.md"}
[ -0.04353119805455208, -0.06294692307710648, -0.0781555026769638, -0.007953107357025146, 0.07472264766693115, -0.009428875520825386, 0.006371563766151667, -0.0016520674107596278, -0.023093508556485176, 0.04453530162572861, -0.023348374292254448, -0.009334761649370193, 0.015293775126338005, ...
9a4d4afb-1dd0-4947-81dc-91964349d6af
| [Argedor](https://www.argedor.com/en/clickhouse/) | ClickHouse support | — | [Official website](https://www.argedor.com/en/clickhouse/) ...
{"source_file": "adopters.md"}
[ -0.0958118885755539, -0.08587481081485748, -0.06063428148627281, -0.00643966905772686, 0.13672737777233124, -0.04244033619761467, 0.04849127680063248, 0.02605336904525757, -0.07186006009578705, -0.04643876478075981, 0.016323549672961235, 0.05313938111066818, 0.0037284065037965775, -0.00244...
c47e7df1-4c74-483e-8115-0b25a3330591
| [Astronomer](https://www.astronomer.io/) | Software & Technology | Observability | [Slide Deck](https://github.com/ClickHouse/clickhouse-presentations/blob/master/2024-meetup-san-francisco...
{"source_file": "adopters.md"}
[ -0.11450008302927017, -0.032431721687316895, 0.019984399899840355, -0.004768568556755781, 0.05034565180540085, -0.020194578915834427, -0.010018916800618172, -0.0314045287668705, -0.04754488542675972, -0.020328175276517868, -0.008524158038198948, -0.04183599352836609, -0.08583065122365952, ...
55fb987d-2864-404e-85bb-0d332a51025a
| [Avito](https://avito.ru/) | Classifieds | Monitoring | [Meetup, April 2020](https://www.youtube.com/watch?v=n1tm4j4W8ZQ) ...
{"source_file": "adopters.md"}
[ -0.10475101321935654, -0.035694386810064316, -0.11047232151031494, -0.04644501954317093, 0.06847596913576126, 0.03077997826039791, 0.03254033997654915, -0.04819061979651451, 0.013137508183717728, 0.0510249063372612, -0.001405024086125195, 0.0022605995181947947, -0.023117076605558395, 0.046...
ab8f7c35-7cbf-4bde-bbae-f3235561f40d
| [AzurePrice](https://azureprice.net/) | Analytics | Main Product | [Blog, November 2022](https://blog.devgenius.io/how-i-migrate-to-clickhouse-and-speedup-my-backend-7x-and...
{"source_file": "adopters.md"}
[ -0.04680071771144867, -0.024875005707144737, -0.0809779241681099, -0.007275313604623079, 0.07651160657405853, 0.0355038084089756, 0.012100007385015488, -0.04480552673339844, 0.002133646747097373, 0.0915544331073761, 0.0032818783074617386, -0.0036800773814320564, 0.0961647555232048, -0.0229...