optimizing-clickhouse-and-hogql-queries
Skill by PostHog
Workflow for optimizing ClickHouse and HogQL queries. Use when a HogQL query, query runner, insight, or report is too slow; when a hand-written ClickHouse query (via `sync_execute` or in a migration) is too slow; when ClickHouse times out or hits memory limits; when investigating a slow `system.query_log` row; or when reviewing a proposed HogQL printer change for performance. Covers extracting the ClickHouse SQL, common smells (`FROM ... FINAL`, `JSONExtract` over properties, missing skip indexes, self-joins, CTE blow-up), measuring against a real cluster, and applying the fix at the right layer (printer, query runner, or migration). Does NOT cover Postgres / Django ORM / app-database queries; for those use `profiling-slow-api-endpoints`.
Install optimizing-clickhouse-and-hogql-queries
Built from the published package, never by AI.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/.agents/skills/optimizing-clickhouse-and-hogql-queries ~/.claude/skills/optimizing-clickhouse-and-hogql-queriesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install optimizing-clickhouse-and-hogql-queries in Claude Code
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/posthog/.agents/skills/optimizing-clickhouse-and-hogql-queries ~/.gemini/antigravity-cli/skills/optimizing-clickhouse-and-hogql-queriesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install optimizing-clickhouse-and-hogql-queries in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
Alternatives to optimizing-clickhouse-and-hogql-queries
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
optimizing-clickhouse-and-hogql-queries: common questions
How do I install optimizing-clickhouse-and-hogql-queries?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is optimizing-clickhouse-and-hogql-queries free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is optimizing-clickhouse-and-hogql-queries safe to use?
It scores 81 of 100. Grades: maintenance A, licence F, quality A. The security check has not run for it yet. Review the code before you install. How grades work.
What are alternatives to optimizing-clickhouse-and-hogql-queries?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
