hologres-query-optimizer

Analyze Hologres EXPLAIN outputs and recommend query optimizations.

17|Updated Apr 22, 2026
One-click install
npx skills add https://github.com/aliyun/hologres-ai-plugins --skill hologres-query-optimizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hologres-query-optimizer
Source: https://github.com/aliyun/hologres-ai-plugins/tree/main/agent-skills/skills/hologres-query-optimizer
Command: npx skills add https://github.com/aliyun/hologres-ai-plugins --skill hologres-query-optimizer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Hologres query performance analysis and optimization by interpreting EXPLAIN and EXPLAIN ANALYZE outputs to identify bottlenecks and deliver actionable improvements.

Core Features & Use Cases

  • Interpret execution plans to pinpoint costly operators, data movement, and skew.
  • Recommend index, clustering, distribution, and GUC tuning adjustments to speed up queries.
  • Use cases include slow queries, complex joins, and multi-shard plan optimization across large datasets.

Quick Start

Run EXPLAIN ANALYZE on a slow SQL query with hologres-cli and review the ADVICE section for recommended optimizations.

Frequently Asked Questions about hologres-query-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize slow Hologres SQL queries?

To optimize slow Hologres SQL queries, run EXPLAIN ANALYZE with hologres-cli to pinpoint costly operators and data skew. The skill interprets the execution plan and provides actionable recommendations for index and GUC tuning.

How do I interpret a Hologres EXPLAIN ANALYZE execution plan?

Interpreting a Hologres EXPLAIN ANALYZE plan involves analyzing execution metrics to identify bottlenecks in complex joins and data movement. This skill evaluates the ADVICE section to guide you through plan metrics and operator optimization.

What GUC parameters should I tune for Hologres query optimization?

Hologres query optimization requires tuning GUC parameters based on EXPLAIN outputs. This skill analyzes multi-shard plans and large datasets to provide specific GUC parameter guidance and distribution adjustments for faster execution.

Can I use hologres-cli to diagnose complex join performance issues?

Yes, you can use hologres-cli to diagnose complex join performance issues by running EXPLAIN ANALYZE on the slow SQL query. The tool evaluates the execution plan to identify costly operators and recommend clustering improvements.

What is the best way to fix data skew in Hologres execution plans?

The best way to fix data skew in Hologres execution plans is to inspect EXPLAIN ANALYZE outputs for uneven data distribution. This skill identifies skew and recommends adjustments to distribution and clustering keys for optimization.