DevOps IA ChatGPT 173 views

Review Table Partitioning to Cut Query Costs

partitioning data engineering data warehouse query cost optimization etl devops performance
SCOPE

For data engineers and analysts who suspect a table's partitioning is driving up query costs in a data warehouse or data lake. You provide the table, the current partition scheme, the most frequent queries, and the stack, and the model assesses whether the key, granularity, and clustering match the real access pattern.

The response includes the problems found with severity and rationale, a concrete proposal for a new design (key, granularity, clustering or sort order), the migration risk, and a way to measure the gain before and after, using data you provided.

Paste the DDL and real queries, fill in the bracketed fields, and use the JSON output to log the review in tickets or documentation. Validate the recommendations in a test environment before changing production.

Content
Main prompt
You are a senior data engineer, specialized in physical modeling and query cost in [STACK: e.g. BigQuery, Snowflake, Spark/Delta, Athena, Redshift].

Task: review the partitioning of table [TABLE] and identify what makes queries scan more data than necessary, proposing concrete and measurable fixes.

Input:
- Current DDL: [DDL_AND_PARTITION_SCHEME]
- Most frequent or most expensive queries: [QUERIES]
- Volume: [ROWS_AND_SIZE_PER_DAY]
Sign in

Sign in to access this free prompt

Related Prompts

Review table partitioning and cut your query costs
DevOps ChatGPT
Operational prompt Ideal for Technical team

Review table partitioning and cut your query costs

Architecture, foundation and governance

Review the partitioning of your data warehouse or data lake tables, find what makes queries expensive, and get prioritiz…

Saves: 1 technical setup Includes: prompt + blueprint Ready to adapt
Large Table Partitioning Plan to Cut Query Costs
DevOps ChatGPT
Operational prompt Ideal for Technical team

Large Table Partitioning Plan to Cut Query Costs

Architecture, foundation and governance

Get a partitioning plan for large tables with key, granularity, risks and migration steps, built for tight deadlines and…

Saves: 1 technical setup Includes: prompt + blueprint Ready to adapt
Recurring Query Cost Review Template
DevOps ChatGPT
Operational prompt Ideal for Technical team

Recurring Query Cost Review Template

Architecture, foundation and governance

Find scheduled queries that cost more than they should. Structured prompt with steps, output format, and quality criteri…

Saves: 1 technical setup Includes: prompt + blueprint Ready to adapt