find-hypertable-candidates

仓库创建 2025年7月24日最近提交 1 个月前SkillHot 收录 20 天前
▸ 精选理由

帮助定位时间序列表并衔接迁移流程,减少盲目改造成本

▸ 风险提示

可能需要访问数据库元信息,注意权限与隐私

这个 Skill 做什么

分析 Postgres 并识别适合转换为 TimescaleDB hypertable 的表

分析现有 Postgres 数据库,找出哪些表适合转换为 TimescaleDB 的 hypertable,按时间序列特征、写入密集度和查询模式打分排序。适合准备迁移到 Timescale/TimescaleDB 或优化事件日志、审计表时使用。输出包括可执行的 SQL 分析方法和候选优先级,便于后续迁移决策。

▸ 展开 SKILL.md 英文原文

Use this skill to analyze an existing PostgreSQL database and identify which tables should be converted to Timescale/TimescaleDB hypertables. **Trigger when user asks to:** - Analyze database tables for hypertable conversion potential - Identify time-series or event tables in an existing schema - Evaluate if a table would benefit from Timescale/TimescaleDB - Audit PostgreSQL tables for migration to Timescale/TimescaleDB/TigerData - Score or rank tables for hypertable candidacy **Keywords:** hypertable candidate, table analysis, migration assessment, Timescale, TimescaleDB, time-series detection, insert-heavy tables, event logs, audit tables Provides SQL queries to analyze table statistics, index patterns, and query patterns. Includes scoring criteria (8+ points = good candidate) and pattern recognition for IoT, events, transactions, and sequential data.

数据与抓取TimescaleDB候选识别性能优化通用
1.8k
Stars
99
Forks
10
仓库内 Skill
+13
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/timescale/pg-aiguide/main/skills/find-hypertable-candidates/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/timescale/pg-aiguide/main/skills/find-hypertable-candidates/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# PostgreSQL Hypertable Candidate Analysis

Identify tables that would benefit from TimescaleDB hypertable conversion. After identification, use the companion "migrate-postgres-tables-to-hypertables" skill for configuration and migration.

## TimescaleDB Benefits

**Performance gains:** 90%+ compression, fast time-based queries, improved insert performance, efficient aggregations, continuous aggregates for materialization (dashboards, reports, analytics), automatic data management (retention, compression).

**Best for insert-heavy patterns:**

- Time-series data (sensors, metrics, monitoring)
- Event logs (user events, audit trails, application logs)
- Transaction records (orders, payments, 
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有