-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclickhouse-optimizations.html
More file actions
187 lines (186 loc) · 5.61 KB
/
clickhouse-optimizations.html
File metadata and controls
187 lines (186 loc) · 5.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ClickHouse Log Search Optimizations: Technical Deep Dive</title>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
background: #fff;
color: #24292e;
line-height: 1.6;
}
.container {
max-width: 1100px;
margin: 0 auto;
padding: 2rem 1rem;
}
.back-link {
display: inline-block;
color: #0366d6;
text-decoration: none;
margin-bottom: 2rem;
font-size: 0.875rem;
}
.back-link:hover {
text-decoration: underline;
}
.markdown-body {
color: #24292e;
line-height: 1.6;
}
.markdown-body h1 {
font-size: 2rem;
font-weight: 600;
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid #e1e4e8;
}
.markdown-body h2 {
font-size: 1.5rem;
font-weight: 600;
margin-top: 2rem;
margin-bottom: 0.75rem;
padding-bottom: 0.25rem;
border-bottom: 1px solid #e1e4e8;
}
.markdown-body h3 {
font-size: 1.25rem;
font-weight: 600;
margin-top: 1.5rem;
margin-bottom: 0.5rem;
}
.markdown-body h4 {
font-size: 1rem;
font-weight: 600;
margin-top: 1.25rem;
margin-bottom: 0.5rem;
}
.markdown-body p {
margin-bottom: 1rem;
}
.markdown-body pre {
background: #f6f8fa;
border: 1px solid #e1e4e8;
border-radius: 6px;
padding: 1rem;
overflow-x: auto;
margin: 1rem 0;
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
font-size: 0.85rem;
line-height: 1.45;
}
.markdown-body code {
background: #f6f8fa;
padding: 0.2em 0.4em;
border-radius: 3px;
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
font-size: 0.85em;
}
.markdown-body pre code {
background: none;
padding: 0;
}
.markdown-body table {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
}
.markdown-body th,
.markdown-body td {
padding: 0.5rem 1rem;
border: 1px solid #e1e4e8;
text-align: left;
}
.markdown-body th {
background: #f6f8fa;
font-weight: 600;
}
.markdown-body hr {
border: none;
border-top: 1px solid #e1e4e8;
margin: 2rem 0;
}
.markdown-body ul,
.markdown-body ol {
margin: 1rem 0;
padding-left: 2rem;
}
.markdown-body li {
margin-bottom: 0.25rem;
}
.markdown-body a {
color: #0366d6;
text-decoration: none;
}
.markdown-body a:hover {
text-decoration: underline;
}
.markdown-body blockquote {
border-left: 4px solid #dfe2e5;
padding-left: 1rem;
margin: 1rem 0;
color: #6a737d;
}
.markdown-body strong {
font-weight: 600;
}
.markdown-body img {
max-width: 100%;
height: auto;
border-radius: 6px;
margin: 1rem 0;
border: 1px solid #e1e4e8;
}
.loading {
text-align: center;
padding: 2rem;
color: #6a737d;
}
.error {
background: #ffeef0;
border: 1px solid #f97583;
border-radius: 6px;
padding: 1rem;
color: #cb2431;
}
</style>
</head>
<body>
<div class="container">
<a href="index.html" class="back-link">← Back to Home</a>
<div class="markdown-body" id="content">
<div class="loading">Loading...</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', async () => {
const content = document.getElementById('content');
try {
const response = await fetch('markdown/clickhouse-optimizations.md');
if (!response.ok) {
throw new Error(`Failed to load: ${response.status}`);
}
const markdown = await response.text();
content.innerHTML = marked.parse(markdown);
// Fix image paths - prepend markdown/ to relative paths
content.querySelectorAll('img').forEach(img => {
const src = img.getAttribute('src');
if (src && !src.startsWith('http') && !src.startsWith('/') && !src.startsWith('markdown/')) {
img.setAttribute('src', 'markdown/' + src);
}
});
} catch (error) {
content.innerHTML = `<div class="error">Error loading document: ${error.message}</div>`;
}
});
</script>
</body>
</html>