Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- database
|
| 9 |
+
- sql
|
| 10 |
+
- query-optimization
|
| 11 |
+
- explain-analyze
|
| 12 |
+
- indexing
|
| 13 |
+
- postgresql
|
| 14 |
+
size_categories:
|
| 15 |
+
- n<1K
|
| 16 |
+
pretty_name: Database Query Optimization & Diagnostic Traces (Community Preview)
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# Database Query Optimization & Diagnostic Traces (Community Preview)
|
| 20 |
+
|
| 21 |
+
> ### 🚀 Complete Enterprise Fine-Tuning Pack (2500 Records)
|
| 22 |
+
> This Hugging Face edition is a capped community preview (**strictly limited to 250 traces**) licensed under **CC BY-NC 4.0** for non-commercial evaluation.
|
| 23 |
+
>
|
| 24 |
+
> To acquire the **Full Curated Commercial Pack (2500 Verified Records in JSONL + Parquet)** with an **unrestricted commercial training license** for production models:
|
| 25 |
+
>
|
| 26 |
+
> **[Purchase Enterprise Commercial License via Dodo Payments](https://checkout.dodopayments.com/buy/pdt_sql_2k5_xxxx)**
|
| 27 |
+
|
| 28 |
+
## Dataset Overview
|
| 29 |
+
Production database queries frequently stall under high-throughput concurrency due to missing composite indexes, suboptimal execution plans, autovacuum freezes, and unindexed joins.
|
| 30 |
+
|
| 31 |
+
This curated corpus delivers 2,500 expert-level diagnostic traces where an SRE or Database Reliability Engineer analyzes EXPLAIN ANALYZE plans, details the query planner's choices, writes exact remediation DDL, and rewrites performant queries.
|
| 32 |
+
|
| 33 |
+
## Distribution Splits
|
| 34 |
+
| Split | Records | Format | License | Purpose |
|
| 35 |
+
|---|---|---|---|---|
|
| 36 |
+
| **Community Preview** | 250 | Parquet | CC BY-NC 4.0 | Evaluation & testing |
|
| 37 |
+
| **Enterprise Pack** | 2500 | Parquet + JSONL | Commercial Grant | Production SFT & DPO fine-tuning |
|
| 38 |
+
|
| 39 |
+
## Dataset Structure
|
| 40 |
+
| Field | Type | Description |
|
| 41 |
+
|---|---|---|
|
| 42 |
+
| `database_engine` | string | Relational or analytical engine (e.g., PostgreSQL 16, ClickHouse, MySQL 8) |
|
| 43 |
+
| `slow_query` | string | Problematic SQL query causing performance regressions |
|
| 44 |
+
| `execution_plan` | string | High-cost execution plan output (e.g., Seq Scan, disk-spilled filesort) |
|
| 45 |
+
| `diagnostic_thought` | string | Step-by-step diagnostic reasoning regarding optimizer bottlenecks |
|
| 46 |
+
| `remediation_ddl` | string | Exact DDL fix (CREATE INDEX CONCURRENTLY, table parameter tweaks) |
|
| 47 |
+
| `optimized_query` | string | Rewritten performant query syntax |
|
| 48 |
+
|
| 49 |
+
## Community License Terms
|
| 50 |
+
This public preview is provided under the **Creative Commons Attribution-NonCommercial 4.0 (CC BY-NC 4.0)** license.
|