The WRITE FLOW of ClickHouse Explained 🚀
Chalk To Code (C2C)
0:00 / 0:00
The WRITE FLOW of ClickHouse Explained 🚀
656 просмотров · 4 месяца назад
Chalk To Code (C2C)
244 подписчика
656 просмотров · 4 месяца назад
In this video, we’ll deep dive into the COMPLETE WRITE FLOW of ClickHouse 🚀
You’ll learn:
✅ How data is inserted in ClickHouse
✅ What happens inside BUFFER
✅ How PARTS are created
✅ MERGE process explained
✅ How data reaches STORAGE
✅ Why ClickHouse is insanely FAST ⚡
If you are preparing for:
🔥 System Design Interviews
🔥 Data Engineering Interviews
🔥 Backend Engineering Roles
🔥 Big Data & Analytics Projects
Then this video is a MUST WATCH.
📌 Topics Covered:
ClickHouse Architecture
Write Path
MergeTree Internals
Buffer & Storage
Columnar Database Concepts
High Performance Databases
💻 Perfect for:
Software Engineers | Data Engineers | Backend Developers | SDE Interviews
👉 Don’t forget to LIKE, SHARE & SUBSCRIBE to ChalkToCode for more tech content.
#ClickHouse #DataEngineering #SystemDesign #BackendEngineering #BigData #DatabaseInternals #TechVideos #viral #trending #ChalkToCode
00:00 - Introduction to ClickHouse Write Flow
01:28 - Chapter 1: Video Recap & Table Setup (Creating the add_events table)
03:42 - Chapter 2: The Insert Journey (How ClickHouse receives and processes data)
05:04 - Why ClickHouse sorts data during write (Compression, Indices, and Merging)
09:33 - Understanding Granules (The 8192-row concept)
14:17 - What are Parts and Files on Disk? (Internal storage structure)
16:43 - Deep dive into .bin files (Actual data storage)
18:31 - Deep dive into .mrk3 files (The "GPS" for data lookup)
22:40 - The Primary Index file (primary.idx)
26:09 - Min-Max Index and Skip Indices
28:57 - Background Merge Process (The role of the MergeTree engine)
33:48 - Concurrent Reads during Merging (MVCC style reference counting)
35:32 - Best Practices for writing to ClickHouse