重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
altinity-expert-clickhouse-dictionaries by altinity/skills
npx skills add https://github.com/altinity/skills --skill altinity-expert-clickhouse-dictionaries分析外部字典:配置、内存使用情况、重新加载状态和性能。
运行文件 checks.sql 中的所有查询并分析结果。
-- SYSTEM RELOAD DICTIONARY {database}.{name}
-- SYSTEM RELOAD DICTIONARIES
-- 检查重新加载结果
select
name,
status,
loading_start_time,
loading_duration,
last_exception
from system.dictionaries
where name = '{dictionary_name}'
| 元素数量 | 推荐类型 |
|---|---|
| < 10万 | Flat(如果键是顺序的) |
| 10万 - 1000万 | Hashed |
1000万 | 考虑分区或缓存
复杂键 | ComplexKeyHashed
稀疏访问 | 使用带 SSD 的缓存
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 症状 | 原因 | 解决方案 |
|---|---|---|
| 内存占用高 | 元素过多 | 使用缓存类型,过滤数据 |
| 重新加载慢 | 源表过大 | 添加过滤器,使用增量更新 |
| 数据陈旧 | 源不可达 | 检查连接性,添加重试机制 |
| 状态失败 | 源查询失败 | 检查源表/查询 |
| 发现 | 加载模块 | 原因 |
|---|---|---|
| 内存使用率高 | altinity-expert-clickhouse-memory | 整体内存分析 |
| 加载失败 | altinity-expert-clickhouse-overview | 错误摘要 + 路由 |
| 源连接性 | altinity-expert-clickhouse-logs | 日志调查 |
| 查找速度慢 | altinity-expert-clickhouse-reporting | 查询优化 |
| 设置项 | 说明 |
|---|---|
dictionaries_lazy_load | 首次访问时加载 vs 启动时加载 |
dictionary_load_wait_timeout_ms | 延迟加载的等待时间 |
max_dictionary_num_to_warn | 警告阈值 |
每周安装次数
42
代码仓库
GitHub 星标数
5
首次出现
2026年1月24日
安全审计
安装于
codex40
claude-code37
opencode19
gemini-cli18
github-copilot17
kimi-cli15
Analyze external dictionaries: configuration, memory usage, reload status, and performance.
Run all queries from the file checks.sql and analyze the results.
-- 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 | altinity-expert-clickhouse-memory | Overall memory analysis |
| Load failures | altinity-expert-clickhouse-overview | Error summary + routing |
| Source connectivity | altinity-expert-clickhouse-logs | Log investigation |
| Slow lookups | altinity-expert-clickhouse-reporting | Query optimization |
| Setting | Notes |
|---|---|
dictionaries_lazy_load | Load on first access vs startup |
dictionary_load_wait_timeout_ms | Wait time for lazy load |
max_dictionary_num_to_warn | Warning threshold |
Weekly Installs
42
Repository
GitHub Stars
5
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex40
claude-code37
opencode19
gemini-cli18
github-copilot17
kimi-cli15
Dogfood - Vercel Labs 自动化 Web 应用探索与问题报告工具
20,800 周安装
InkOS:基于LLM智能体的自主小说写作CLI工具,支持中英文多流派创作与AI审核
171 周安装
小分子结合物发现策略 - 60+工具系统化药物发现与ADMET过滤
167 周安装
Phoenix LiveView 实时 Web 开发框架 - Elixir/BEAM 全栈解决方案
171 周安装
Avalonia Zafiro 开发指南:跨平台应用函数式响应式MVVM架构与最佳实践
173 周安装
液态玻璃设计指南:使用 SwiftUI 构建原生 macOS/iOS 应用的玻璃效果 UI
168 周安装
Vitest 测试框架完整指南:JavaScript/TypeScript 项目极速测试与配置教程
171 周安装