Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.
中文简介正在准备中。当前显示原文说明。
ClickHouse columnar analytics — schema design, MergeTree tuning, and fast queries — use for OLAP and high-volume event data.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
ClickHouse is a columnar OLAP database built for sub-second analytics over billions of rows. Its speed comes from a storage layout (MergeTree family) and query engine designed for scans and aggregations — which means schema and query patterns differ sharply from row-oriented databases. This skill covers designing for ClickHouse's strengths.
MergeTree, ReplacingMergeTree, AggregatingMergeTree)ORDER BY / partition keys for time-series or event dataGROUP BY, uniq, quantiles, window functions)ORDER BY is the primary index. The ORDER BY key (sorting key) determines
data layout on disk and which queries skip granules. Put the most-filtered
columns first — typically (tenant_id, event_time, ...) — because ClickHouse
prunes using this key. Choose wrong and every query scans everything.
Columnar means wide tables are cheap. Unlike row stores, selecting 5 columns from a 200-column table reads only those 5. Denormalize aggressively — joins are supported but the engine rewards flat, pre-joined event tables.
Inserts: batch, don't trickle. Each insert creates a part; thousands of tiny inserts create thousands of parts and merge storms. Batch to ~1k–100k rows per insert (or use async inserts / a buffer table). Aim for parts in the hundreds, not millions.
Engines encode update semantics. ReplacingMergeTree keeps the latest row
per key (deduplication at merge time — queries should still use FINAL or
argMax for exactness). AggregatingMergeTree stores partial aggregate states
for incremental rollups. SummingMergeTree/CollapsingMergeTree handle
specific accounting patterns. Pick the engine that matches how data changes.
Approximation is a feature. uniq(), quantiles(), and sampling (TABLESAMPLE,
SAMPLE BY) trade tiny accuracy losses for 10–100x speedups — perfect for
dashboards over billions of rows.
ORDER BY key and partitioning (usually by month on
the timestamp).PARTITION BY toYYYYMM(ts),
ORDER BY (tenant_id, ts), and low-cardinality types (LowCardinality(String),
DateTime, appropriate integer widths) to cut storage.system.parts count per table — sustained growth signals an insert problem.SELECT *, use PREWHERE for highly selective filters on non-key columns,
and prefer approximate functions for exploratory work.ALTER UPDATE/DELETE are heavyweight
background operations — fine occasionally, not a workload pattern. Design
around append-mostly data.ReplicatedMergeTree + ZooKeeper/ClickHouse
Keeper, shard by a hash key for scale-out, back up with filesystem snapshots
or BACKUP TABLE, and monitor merge/mutation queues.FINAL on huge tables routinely — forces full merges at query
time; use it sparingly or design deduplication into the pipeline.String for everything wastes 5–10x storage vs
LowCardinality(String) and right-sized numerics; storage is query speed in
a columnar engine.TTL or drop old partitions on a schedule.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.
中文简介正在准备中。当前显示原文说明。
Create 3D visuals with modeling, texturing, lighting, rendering, and optimization for web and product.
中文简介正在准备中。当前显示原文说明。
Create 3D web experiences: scene setup, models, materials, lighting, animation, scroll-driven scenes, and performance budgets. Use when adding 3D to websites beyond basic demos.
中文简介正在准备中。当前显示原文说明。
Writing abstracts that get papers read — structured content, the 5-sentence core, and journal-specific constraints.
中文简介正在准备中。当前显示原文说明。
Learn effectively from courses and academies: choosing programs, studying actively, and converting courses into skills. Use when investing time/money in structured learning.
中文简介正在准备中。当前显示原文说明。
Audit designs for accessibility with WCAG checklists covering color, type, focus, motion, and content.
中文简介正在准备中。当前显示原文说明。