starrocks

Guide StarRocks table design, partitioning, and materialized view management.

1|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/nq-rdl/agent-extensions --skill starrocks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: starrocks
Source: https://github.com/nq-rdl/agent-extensions/tree/main/skills/starrocks
Command: npx skills add https://github.com/nq-rdl/agent-extensions --skill starrocks

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

StarRocks analytic workflows often suffer from poorly designed schemas, suboptimal partitioning, and lack of acceleration techniques. This guide helps data engineers and analysts design efficient tables, loading patterns, and query optimization strategies to achieve faster analytics at scale.

Core Features & Use Cases

  • Table design guidance: choose appropriate table types (Duplicate Key, Aggregate, Unique Key, Primary Key) and partitioning strategies to meet query patterns.
  • Loading and unloading patterns: streaming, broker loading, upserts, and MV-backed refresh approaches to keep data fresh with minimal operational overhead.
  • Query acceleration techniques: collect statistics, design materialized views (synchronous and asynchronous), colocate joins, and apply caching to speed up dashboards and BI workloads.
  • Catalog and external data access: work with internal/external catalogs and leverage information_schema for metadata queries and governance.

Quick Start

Design a StarRocks schema with a partitioned table and run a representative query to validate performance.

Frequently Asked Questions about starrocks

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

FAQPage Schema
How do I choose the right StarRocks table type and partitioning strategy for my data warehouse?

Choose StarRocks table types such as Duplicate Key, Aggregate, Unique Key, or Primary Key based on your query patterns, and apply partitioning strategies to optimize data scanning and analytics performance at scale.

What is the best way to accelerate slow BI dashboard queries in StarRocks?

Accelerate slow StarRocks BI dashboard queries by collecting CBO statistics, designing synchronous and asynchronous materialized views, applying colocate joins, and leveraging query caching mechanisms to speed up execution.

How do materialized views work in StarRocks for query acceleration?

StarRocks materialized views precompute and store query results using synchronous and asynchronous refresh patterns to keep data fresh, reducing computation overhead and accelerating BI workloads.

Can I use external catalogs and information_schema for metadata queries in StarRocks?

Yes, you can query internal and external catalogs in StarRocks and leverage information_schema for metadata queries and governance, enabling seamless access to external data sources within your analytic workflows.

What are the recommended data loading and upsert patterns for StarRocks?

Recommended StarRocks loading patterns include streaming ingestion, broker loading, and upserts, often combined with materialized view-backed refresh approaches to maintain data freshness with minimal operational overhead.