Loading...
Loading...
Analyze ClickHouse external dictionaries including configuration, memory usage, reload status, and performance. Use for dictionary issues and load failures.
npx skill4agent add altinity/skills altinity-expert-clickhouse-dictionaries-- SYSTEM RELOAD DICTIONARY {database}.{name}
-- SYSTEM RELOAD DICTIONARIES-- Check reload result
select
name,
status,
loading_start_time,
loading_duration,
last_exception
from system.dictionaries
where name = '{dictionary_name}'| Elements | Recommended Type |
|---|---|
| < 100K | Flat (if sequential keys) |
| 100K - 10M | Hashed |
| > 10M | Consider partitioning or cache |
| Complex keys | ComplexKeyHashed |
| Sparse access | Cache with SSD |
| Symptom | Cause | Solution |
|---|---|---|
| High memory | Too many elements | Use cache type, filter data |
| Slow reload | Large source table | Add filters, use delta updates |
| Stale data | Source unreachable | Check connectivity, add retry |
| Failed status | Source query fails | Check source table/query |
| Finding | Load Module | Reason |
|---|---|---|
| High memory usage | | Overall memory analysis |
| Load failures | | Error summary + routing |
| Source connectivity | | Log investigation |
| Slow lookups | | Query optimization |
| Setting | Notes |
|---|---|
| Load on first access vs startup |
| Wait time for lazy load |
| Warning threshold |