VeloDB/Apache Doris table design and cluster sizing best practices. MUST USE when writing, reviewing, or optimizing Doris CREATE TABLE statements, partition/bucket strategies, data models, or cluster configurations. ALSO MUST USE whenever the velodb-architecture-advisor skill produces DDL — apply the Pre-Flight Checklist to every CREATE TABLE before output. Also triggers on any workload design involving: IoT, analytics, dashboard, CDC, time-series, log analysis, real-time warehouse, point query, data platform, or any scenario where table design decisions are being made. Also triggers on replacing or migrating from legacy analytics/search/serving stacks such as Impala, Kudu, Elasticsearch/ES, Greenplum, Presto, HBase, Hive, Hadoop, Redis, or Lambda-style multi-engine data platforms, even when VeloDB/Doris is not named explicitly. Also use when user provides a VeloDB connection string or asks to get started. Also triggers on slow query investigation, query profiling, runtime performance diagnosis, tablet skew a
Problem-first table design intelligence for Apache Doris.
37 rules, 7 use case templates, 4 sizing guides.
All details in references/ directory and compiled AGENTS.md.
For live slow-query or runtime diagnosis, do not use this table as the first response. First read references/cli-investigation.md and collect or attempt evidence (profile get, profile list, profile history, tablet, EXPLAIN, or auth status). Use this table only after evidence points to the symptom.
Symptom
Check These Rules
Quick Fix
Full table scan on WHERE clause
schema-keys-selectivity-first
Move filtered column to sort key position 1
JOINs are slow / shuffle
usecase-star-schema-join
Small dims (<1GB): broadcast + runtime filter. Large: colocation
AUTO PARTITION + ZSTD compression + scheduled DROP PARTITION
Sync MV not being used
schema-mv-sync-rollup
Use raw columns (not date_trunc) in MV GROUP BY; unique aliases
Async MV rewrite fails
schema-mv-async-join + schema-mv-async-limits
Check State/RefreshState; query MV directly if predicate fails
Data skew / hot tablets
schema-bucket-composite-for-skew
Composite bucket key or RANDOM
Import fails / data version error
schema-mv-async-limits
Check concurrent MV refresh limit (max 3)
VARCHAR in key kills perf
schema-keys-fixed-length-types
Move VARCHAR after fixed-length types
Writes slow on UNIQUE table
schema-model-prefer-mow
Ensure MoW is enabled (not MoR)
2 ▸ Pre-Flight Checklist (Before Any CREATE TABLE)
Run through this checklist in order. Each step references the relevant rule:
Data model — UNIQUE (updates?) vs DUPLICATE (append?) vs AGGREGATE (pre-agg only?) → schema-model-choose-for-workload
Partition strategy — Time-series? AUTO PARTITION preferred. Small table? Skip. Do NOT combine AUTO with dynamic_partition. → schema-partition-*
Bucket key + count — HASH on JOIN key. Calculate explicit count: daily_GB / target_tablet_GB. Use explicit fallback counts when volume is unknown: 3 for small dimensions, 8 for medium tables, 16-32 for large daily fact tables. → schema-bucket-*
Sort key order — High-selectivity first, fixed-length before VARCHAR → schema-keys-*
Data types — Native types, not STRING. DECIMAL not FLOAT. → schema-types-*
Indexes — BloomFilter for equality, Inverted for text, NGram for LIKE → schema-index-*
DDL hard constraints (VeloDB rejects DDL if any violated):
UNIQUE KEY + PARTITION BY RANGE → partition column MUST be in the UNIQUE KEY: UNIQUE KEY(id, dt) PARTITION BY RANGE(dt)
Key columns must be the FIRST N columns in schema, same order — put key cols first, non-key after. Example: UNIQUE KEY(account_id, symbol) means schema must start with account_id, symbol, ... — never place non-key columns between key columns
store_row_column = "true" only works on UNIQUE MoW — NOT on AGGREGATE or DUPLICATE
AUTO PARTITION requires date_trunc() AND empty parens: AUTO PARTITION BY RANGE(date_trunc(col, 'day')) () — bare column name fails, missing () fails
Dynamic partition requires explicit PARTITION BY RANGE(col) () clause in DDL — properties alone are not enough
Do not set dynamic_partition.buckets; put the numeric count only in DISTRIBUTED BY HASH(col) BUCKETS N
compaction_policy = "time_series" only for DUPLICATE tables — fails on UNIQUE
Async MV refresh: use REFRESH AUTO ON SCHEDULE EVERY 10 MINUTE or REFRESH COMPLETE ON SCHEDULE EVERY 10 MINUTE — NOT REFRESH SCHEDULE EVERY, NOT REFRESH ASYNC EVERY(INTERVAL ...). Minimum interval: 1 MINUTE
MV using NOW()/CURDATE(): add PROPERTIES ("enable_nondeterministic_function" = "true")
BOOLEAN defaults must be quoted: DEFAULT "true" not DEFAULT TRUE
BloomFilter index: use PROPERTIES ("bloom_filter_columns" = "col1,col2") — NOT inline INDEX ... USING BLOOM FILTER
AGGREGATE column syntax: aggregation function BEFORE default: col BIGINT SUM DEFAULT "0" — NOT col BIGINT DEFAULT "0" SUM
AGGREGATE DEFAULT "null" only works for VARCHAR — fails on INT, DATE, DECIMAL, BIGINT. Omit DEFAULT entirely for REPLACE_IF_NOT_NULL on non-string types: vip_level INT REPLACE_IF_NOT_NULL (not DEFAULT "null")
enable_unique_key_partial_update is a session variable, NOT a table property
Full details: schema-ddl-gotchas
2b ▸ DDL Templates (copy the closest match, customize columns)
For each CREATE TABLE, select the closest template below. Customize column names, types, bucket count, and partition settings. Do NOT write DDL from scratch.
velocli profile get <qid> or --full for complete diagnosis
Compare fast vs slow
velocli profile diff <slow_qid> <fast_qid>
Performance trend
velocli profile history <sql_pattern> --days 7
Test connection
velocli auth status
Switch environment
velocli use <name>
Runtime Query Investigation
For slow queries or runtime performance issues, read references/cli-investigation.md.
Evidence first is mandatory: collect or attempt profile, tablet, DDL, stats, EXPLAIN, history, active-query, or connection evidence before forming hypotheses. If evidence cannot be collected locally, state that and provide the exact commands to run
Prefer existing profiles: use profile get <query_id>, profile list, or profile history before re-executing SQL
Proactive discovery: for vague slow-query reports, start with auth status, profile list --active, and recent profile list before asking the user for more context
Safety gate: before running user SQL with --profile, check whether it is safe (no DDL, no mutation, no unbounded scan). For unknown, peak-hour, or expensive SQL, run velocli sql "EXPLAIN <query>" --format json first and ask confirmation or request an existing query_id
Hypotheses, not verdicts: diagnostic mappings are heuristics. Present evidence, likely cause, what to check next, and when the conclusion may be wrong
If velocli is unavailable, fall back to SQL commands listed in the reference
Always use --format json for structured agent-readable output
schema-props-compression — LZ4 vs ZSTD compression
Caching — MEDIUM (2 rules)
schema-cache-file-cache — File cache for cloud mode
schema-cache-query-partition — Query and partition cache
1---2name: velodb-best-practices3description: VeloDB/Apache Doris table design and cluster sizing best practices. MUST USE when writing, reviewing, or optimizing Doris CREATE TABLE statements, partition/bucket strategies, data models, or cluster configurations. ALSO MUST USE whenever the velodb-architecture-advisor skill produces DDL — apply the Pre-Flight Checklist to every CREATE TABLE before output. Also triggers on any workload design involving: IoT, analytics, dashboard, CDC, time-series, log analysis, real-time warehouse, point query, data platform, or any scenario where table design decisions are being made. Also triggers on replacing or migrating from legacy analytics/search/serving stacks such as Impala, Kudu, Elasticsearch/ES, Greenplum, Presto, HBase, Hive, Hadoop, Redis, or Lambda-style multi-engine data platforms, even when VeloDB/Doris is not named explicitly. Also use when user provides a VeloDB connection string or asks to get started. Also triggers on slow query investigation, query profiling, runtime performance diagnosis, tablet skew a4license: Apache-2.05---67# VeloDB Best Practices89> Problem-first table design intelligence for Apache Doris.10> 37 rules, 7 use case templates, 4 sizing guides.11> All details in `references/` directory and compiled `AGENTS.md`.1213---1415## 1 ▸ Problem-First Routing1617### I need to build…1819| Problem | Template(s) | Key Rules |20|---------|-------------|-----------|21| Real-time log/event analytics | `usecase-log-event` | DUPLICATE, RANGE partition, dynamic TTL, ZSTD |22| CDC / MySQL sync to Doris | `usecase-cdc-sync` | UNIQUE MoW, sequence_col, HASH bucket |23| Dashboard with pre-aggregated metrics | `usecase-dashboard-metrics` | AGGREGATE, BITMAP_UNION, sync MV |24| User-facing API with low-latency point queries | `usecase-point-query` | UNIQUE MoW, store_row_column, BloomFilter |25| Star schema with JOIN-heavy analytics | `usecase-star-schema-join` | Colocation, same bucket key/count |26| Small dimension / lookup table | `usecase-dimension-lookup` | DUPLICATE, RANDOM bucket, 3 buckets |27| Observability (logs + traces + metrics) | `usecase-observability` | 3 tables: DUP logs, DUP traces, AGG metrics |28| Vehicle/fleet tracking | `usecase-log-event` + `usecase-point-query` | Time-series + point-query hybrid |29| E-commerce order analytics | `usecase-star-schema-join` + `usecase-dashboard-metrics` | Star schema + AGG rollups |30| Full-text search / content search | `schema-index-text-search` | Inverted index, MATCH, BM25 |31| User behavior / funnel analysis | `schema-types-bitmap-count-distinct` | BITMAP_UNION, bitmap_intersect |32| Semi-structured JSON data | `schema-types-variant-json` | VARIANT type, schema_template |3334### My query is slow after evidence shows…3536For live slow-query or runtime diagnosis, do **not** use this table as the first response. First read `references/cli-investigation.md` and collect or attempt evidence (`profile get`, `profile list`, `profile history`, `tablet`, `EXPLAIN`, or `auth status`). Use this table only after evidence points to the symptom.3738| Symptom | Check These Rules | Quick Fix |39|---------|------------------|-----------|40| Full table scan on WHERE clause | `schema-keys-selectivity-first` | Move filtered column to sort key position 1 |41| JOINs are slow / shuffle | `usecase-star-schema-join` | Small dims (<1GB): broadcast + runtime filter. Large: colocation |42| COUNT DISTINCT is slow | `schema-types-bitmap-count-distinct` | Switch to BITMAP_UNION aggregation |43| LIKE '%keyword%' is slow | `schema-index-ngram-for-like` | Add NGram BloomFilter index |44| Point query latency too high | `usecase-point-query` | Enable store_row_column + Prepared Statement |45| Storage growing too fast | `schema-partition-auto-on-demand` + `schema-props-compression` | AUTO PARTITION + ZSTD compression + scheduled DROP PARTITION |46| Sync MV not being used | `schema-mv-sync-rollup` | Use raw columns (not date_trunc) in MV GROUP BY; unique aliases |47| Async MV rewrite fails | `schema-mv-async-join` + `schema-mv-async-limits` | Check State/RefreshState; query MV directly if predicate fails |48| Data skew / hot tablets | `schema-bucket-composite-for-skew` | Composite bucket key or RANDOM |49| Import fails / data version error | `schema-mv-async-limits` | Check concurrent MV refresh limit (max 3) |50| VARCHAR in key kills perf | `schema-keys-fixed-length-types` | Move VARCHAR after fixed-length types |51| Writes slow on UNIQUE table | `schema-model-prefer-mow` | Ensure MoW is enabled (not MoR) |5253---5455## 2 ▸ Pre-Flight Checklist (Before Any CREATE TABLE)5657Run through this checklist in order. Each step references the relevant rule:5859- [ ] **Data model** — UNIQUE (updates?) vs DUPLICATE (append?) vs AGGREGATE (pre-agg only?) → `schema-model-choose-for-workload`60- [ ] **Partition strategy** — Time-series? AUTO PARTITION preferred. Small table? Skip. Do NOT combine AUTO with dynamic_partition. → `schema-partition-*`61- [ ] **Bucket key + count** — HASH on JOIN key. Calculate explicit count: `daily_GB / target_tablet_GB`. Use explicit fallback counts when volume is unknown: 3 for small dimensions, 8 for medium tables, 16-32 for large daily fact tables. → `schema-bucket-*`62- [ ] **Sort key order** — High-selectivity first, fixed-length before VARCHAR → `schema-keys-*`63- [ ] **Data types** — Native types, not STRING. DECIMAL not FLOAT. → `schema-types-*`64- [ ] **Indexes** — BloomFilter for equality, Inverted for text, NGram for LIKE → `schema-index-*`65- [ ] **Properties** — MoW enabled? Compression? Cloud mode replication_num=1? → `schema-props-*`66- [ ] **DDL hard constraints** (VeloDB rejects DDL if any violated):67 - UNIQUE KEY + PARTITION BY RANGE → partition column MUST be in the UNIQUE KEY: `UNIQUE KEY(id, dt) PARTITION BY RANGE(dt)`68 - Key columns must be the FIRST N columns in schema, same order — put key cols first, non-key after. Example: `UNIQUE KEY(account_id, symbol)` means schema must start with `account_id, symbol, ...` — never place non-key columns between key columns69 - `store_row_column = "true"` only works on UNIQUE MoW — NOT on AGGREGATE or DUPLICATE70 - AUTO PARTITION requires `date_trunc()` AND empty parens: `AUTO PARTITION BY RANGE(date_trunc(col, 'day')) ()` — bare column name fails, missing `()` fails71 - Dynamic partition requires explicit `PARTITION BY RANGE(col) ()` clause in DDL — properties alone are not enough72 - Do not set `dynamic_partition.buckets`; put the numeric count only in `DISTRIBUTED BY HASH(col) BUCKETS N`73 - `compaction_policy = "time_series"` only for DUPLICATE tables — fails on UNIQUE74 - Async MV refresh: use `REFRESH AUTO ON SCHEDULE EVERY 10 MINUTE` or `REFRESH COMPLETE ON SCHEDULE EVERY 10 MINUTE` — NOT `REFRESH SCHEDULE EVERY`, NOT `REFRESH ASYNC EVERY(INTERVAL ...)`. Minimum interval: 1 MINUTE75 - MV using `NOW()`/`CURDATE()`: add `PROPERTIES ("enable_nondeterministic_function" = "true")`76 - BOOLEAN defaults must be quoted: `DEFAULT "true"` not `DEFAULT TRUE`77 - BloomFilter index: use `PROPERTIES ("bloom_filter_columns" = "col1,col2")` — NOT inline `INDEX ... USING BLOOM FILTER`78 - AGGREGATE column syntax: aggregation function BEFORE default: `col BIGINT SUM DEFAULT "0"` — NOT `col BIGINT DEFAULT "0" SUM`79 - AGGREGATE `DEFAULT "null"` only works for VARCHAR — fails on INT, DATE, DECIMAL, BIGINT. Omit DEFAULT entirely for REPLACE_IF_NOT_NULL on non-string types: `vip_level INT REPLACE_IF_NOT_NULL` (not `DEFAULT "null"`)80 - `enable_unique_key_partial_update` is a session variable, NOT a table property81 - Full details: `schema-ddl-gotchas`8283---8485## 2b ▸ DDL Templates (copy the closest match, customize columns)8687For each CREATE TABLE, select the closest template below. Customize column names, types, bucket count, and partition settings. Do NOT write DDL from scratch.8889### T1: Append-only events/logs (DUPLICATE)90```sql91CREATE TABLE events (92 entity_id VARCHAR(64) NOT NULL,93 event_time DATETIME NOT NULL,94 event_type VARCHAR(50) NOT NULL,95 payload VARIANT96) DUPLICATE KEY(entity_id, event_time, event_type)97PARTITION BY RANGE(event_time) ()98DISTRIBUTED BY HASH(entity_id) BUCKETS 1099PROPERTIES (100 "dynamic_partition.enable" = "true",101 "dynamic_partition.time_unit" = "DAY",102 "dynamic_partition.start" = "-90",103 "dynamic_partition.end" = "3",104 "dynamic_partition.prefix" = "p",105 "compression" = "zstd",106 "compaction_policy" = "time_series",107 "replication_num" = "1"108);109```110111### T2: Updatable with partition (UNIQUE MoW + CDC)112```sql113CREATE TABLE orders (114 order_id BIGINT NOT NULL,115 order_time DATETIME NOT NULL,116 update_time DATETIME NOT NULL,117 status VARCHAR(20),118 amount DECIMAL(18,2)119) UNIQUE KEY(order_id, order_time)120PARTITION BY RANGE(order_time) ()121DISTRIBUTED BY HASH(order_id) BUCKETS 5122PROPERTIES (123 "enable_unique_key_merge_on_write" = "true",124 "function_column.sequence_col" = "update_time",125 "dynamic_partition.enable" = "true",126 "dynamic_partition.time_unit" = "DAY",127 "dynamic_partition.start" = "-365",128 "dynamic_partition.end" = "3",129 "dynamic_partition.prefix" = "p",130 "replication_num" = "1"131);132```133134### T3: Small dimension / lookup (UNIQUE, no partition)135```sql136CREATE TABLE dim_product (137 product_id INT NOT NULL,138 name VARCHAR(200),139 category VARCHAR(50)140) UNIQUE KEY(product_id)141DISTRIBUTED BY HASH(product_id) BUCKETS 3142PROPERTIES (143 "enable_unique_key_merge_on_write" = "true",144 "replication_num" = "1"145);146```147148### T4: Pre-aggregated KPIs (AGGREGATE)149```sql150CREATE TABLE daily_kpi (151 stat_date DATE NOT NULL,152 dimension VARCHAR(50) NOT NULL,153 metric_sum BIGINT SUM DEFAULT "0",154 metric_max DOUBLE MAX DEFAULT "0",155 unique_users BITMAP BITMAP_UNION156) AGGREGATE KEY(stat_date, dimension)157PARTITION BY RANGE(stat_date) ()158DISTRIBUTED BY HASH(dimension) BUCKETS 3159PROPERTIES (160 "dynamic_partition.enable" = "true",161 "dynamic_partition.time_unit" = "MONTH",162 "dynamic_partition.start" = "-12",163 "dynamic_partition.end" = "1",164 "dynamic_partition.prefix" = "p",165 "replication_num" = "1"166);167```168169### T5: Point query / API serving (UNIQUE MoW + row store)170```sql171CREATE TABLE user_profiles (172 user_id BIGINT NOT NULL,173 update_time DATETIME NOT NULL,174 name VARCHAR(100),175 data VARIANT176) UNIQUE KEY(user_id)177DISTRIBUTED BY HASH(user_id) BUCKETS 5178PROPERTIES (179 "enable_unique_key_merge_on_write" = "true",180 "function_column.sequence_col" = "update_time",181 "store_row_column" = "true",182 "light_schema_change" = "true",183 "replication_num" = "1"184);185```186187---188189## 3 ▸ Connection & VeloCLI190191### Detect VeloCLI192193Before running any queries, detect the CLI binary:1941951. Check `VELOCLI_PATH` env var — if set, use that binary path1962. `command -v velocli` — use from PATH1973. `command -v sdbcli` — only for explicit SelectDB environments1984. If none available: fall back to `mysql` client (see `references/start-*.md`)199200### When VeloCLI is available, prefer it for all operations:201202| Task | VeloCLI Command |203|------|-----------------|204| Run SQL | `velocli sql "SELECT ..."` |205| DDL inspection | `velocli sql "SHOW CREATE TABLE db.t"` |206| Table/tablet health | `velocli tablet db.t` (overview) or `velocli tablet db.t --detail` |207| Profile a slow query | `velocli sql "SELECT ..." --profile` → captures query_id |208| Get query profile | `velocli profile get <qid>` or `--full` for complete diagnosis |209| Compare fast vs slow | `velocli profile diff <slow_qid> <fast_qid>` |210| Performance trend | `velocli profile history <sql_pattern> --days 7` |211| Test connection | `velocli auth status` |212| Switch environment | `velocli use <name>` |213214### Runtime Query Investigation215216For slow queries or runtime performance issues, read `references/cli-investigation.md`.217218- **Evidence first is mandatory**: collect or attempt profile, tablet, DDL, stats, EXPLAIN, history, active-query, or connection evidence before forming hypotheses. If evidence cannot be collected locally, state that and provide the exact commands to run219- **Prefer existing profiles**: use `profile get <query_id>`, `profile list`, or `profile history` before re-executing SQL220- **Proactive discovery**: for vague slow-query reports, start with `auth status`, `profile list --active`, and recent `profile list` before asking the user for more context221- **Safety gate**: before running user SQL with `--profile`, check whether it is safe (no DDL, no mutation, no unbounded scan). For unknown, peak-hour, or expensive SQL, run `velocli sql "EXPLAIN <query>" --format json` first and ask confirmation or request an existing query_id222- **Hypotheses, not verdicts**: diagnostic mappings are heuristics. Present evidence, likely cause, what to check next, and when the conclusion may be wrong223- If velocli is unavailable, fall back to SQL commands listed in the reference224- Always use `--format json` for structured agent-readable output225226### Quick-start guides227228- `references/start-cloud.md` — VeloDB Cloud229- `references/start-self-hosted.md` — Self-hosted / BYOC / on-prem230231---232233## 4 ▸ Cluster Sizing234235Sizing guides are in:236- `references/sizing-fe.md` — FE node sizing237- `references/sizing-be-integrated.md` — BE sizing (integrated storage)238- `references/sizing-be-cloud.md` — BE sizing (cloud / storage-compute)239- `references/sizing-storage-formula.md` — Storage calculation formula240241---242243## 5 ▸ Rule Index by Category244245### Data Model — CRITICAL (4 rules)246- `schema-model-choose-for-workload` — DUP vs UNIQUE vs AGG decision tree247- `schema-model-prefer-mow` — Always MoW for UNIQUE tables248- `schema-model-avoid-agg-for-updates` — AGG cannot UPDATE/DELETE249- `schema-model-sequence-col-for-cdc` — Sequence column for out-of-order CDC250251### Partition Strategy — CRITICAL (4 rules)252- `schema-partition-range-for-timeseries` — RANGE for time-series253- `schema-partition-dynamic-ttl` — Dynamic partition for automated TTL254- `schema-partition-auto-on-demand` — AUTO for sporadic data255- `schema-partition-skip-for-small` — Skip partitioning under 1 GB256257### Bucket Strategy — CRITICAL (5 rules)258- `schema-bucket-hash-vs-random` — HASH for pruning, RANDOM for DUP only259- `schema-bucket-high-cardinality-key` — Choose high-cardinality column260- `schema-bucket-composite-for-skew` — Composite key to fix data skew261- `schema-bucket-target-size` — Target 1-10 GB per tablet262- `schema-bucket-cloud-mandatory-hash` — Cloud MoW requires HASH263264### Sort Key — CRITICAL (5 rules)265- `schema-keys-selectivity-first` — High selectivity first266- `schema-keys-fixed-length-types` — Fixed-length before VARCHAR267- `schema-keys-prefix-index-limits` — 36 bytes max, VARCHAR terminates it268- `schema-keys-cluster-key-for-mow` — Cluster key for UNIQUE tables269- `schema-keys-avoid-float` — No FLOAT/DOUBLE in sort key270271### Data Types — HIGH (5 rules)272- `schema-types-native-vs-string` — Native types, not STRING273- `schema-types-zonemap-limitations` — JSON/ARRAY disable ZoneMap274- `schema-types-variant-json` — VARIANT for semi-structured JSON275- `schema-types-bitmap-count-distinct` — BITMAP_UNION for exact count-distinct276- `schema-types-doris-specifics` — DATETIME precision, VARCHAR vs STRING277278### Indexes — HIGH (7 rules)279- `schema-index-bloomfilter` — BloomFilter for equality280- `schema-index-inverted` — Inverted for text/range281- `schema-index-ngram-for-like` — NGram for LIKE %pattern%282- `schema-index-bitmap` — Bitmap for medium cardinality283- `schema-index-vector` — HNSW/IVF for ANN search284- `schema-index-text-search` — Full-text MATCH + BM25285286### Query Acceleration — HIGH (3 rules)287- `schema-mv-sync-rollup` — Sync MV for single-table aggregation288- `schema-mv-async-join` — Async MV for multi-table JOIN289- `schema-mv-async-limits` — Operational limits (50M rows, 3 concurrent)290291### Table Properties — HIGH/MEDIUM (2 rules)292- `schema-props-cloud-forced` — Cloud mode forced properties293- `schema-props-compression` — LZ4 vs ZSTD compression294295### Caching — MEDIUM (2 rules)296- `schema-cache-file-cache` — File cache for cloud mode297- `schema-cache-query-partition` — Query and partition cache
Run npx skillmds@latest add velodb/velodb-best-practices in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
VeloDB/Apache Doris table design and cluster sizing best practices. MUST USE when writing, reviewing, or optimizing Doris CREATE TABLE statements, partition/bucket strategies, data models, or cluster configurations. ALSO MUST USE whenever the velodb-architecture-advisor skill produces DDL — apply the Pre-Flight Checklist to every CREATE TABLE before output. Also triggers on any workload design involving: IoT, analytics, dashboard, CDC, time-series, log analysis, real-time warehouse, point query, data platform, or any scenario where table design decisions are being made. Also triggers on replacing or migrating from legacy analytics/search/serving stacks such as Impala, Kudu, Elasticsearch/ES, Greenplum, Presto, HBase, Hive, Hadoop, Redis, or Lambda-style multi-engine data platforms, even when VeloDB/Doris is not named explicitly. Also use when user provides a VeloDB connection string or asks to get started. Also triggers on slow query investigation, query profiling, runtime performance diagnosis, tablet skew a It is listed under Data & Analytics on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free. This skill is licensed under Apache-2.
velodb (@velodb) published this skill. Their other Agent Skills are listed on their SkillMD profile.