Data Warehouse Optimization Playbook for 2026

A 2025 academic study of an overloaded warehouse combined indexing, compression, materialized views, partitioning, columnar storage, and a star schema. Stored data fell from 64,208 KB to 48,888 KB, a 23.86% drop. Query time fell from 1.16 seconds to 0.70 seconds, a 39.66% improvement. That was one lab workload, not a universal benchmark, and it still reframes the job. Physical design beat a bigger cluster.

Data warehouse optimization is a scored business outcome with workload guardrails, not a hunt for a faster average query. A platform lead can defend four numbers: bytes scanned per refresh, p95 latency, credits per dashboard, and freshness against the source. Change one lever, then read the scorecard again.

Results Worth Optimizing For

Say finance needs a nightly revenue pack over an orders fact and three dimensions: customer, product, and date. The pack has to be queryable before the 7 a.m. meeting. A larger warehouse will finish that SELECT. It will also stay billed at peak size for the rest of the day if nobody turns it down.

Cloud platforms already separate storage and compute, so capacity is a choice, not a rack. Market analysis citing Gartner projects that more than 75% of new enterprise data-warehouse deployments will be cloud-native by 2027, compared with an estimated 62% in 2025. Migration doesn't write the scorecard for you. A faster query can still raise the bill when the warehouse stays sized for the peak.

A professional team reviewing data warehouse optimization metrics on a computer screen in a bright office environment.

Four numbers before any lever

Record the scorecard on the same SQL, after cache warm-up, before you touch clustering or size.

MetricWhat to recordRunning casePass testBytes scanned per refreshBytes and micro-partitions read on the load and the decision queryOrders fact plus three dimensionsScan drops without a larger warehousep95 latencyTail latency after cache warm-up, with p50 and p99 beside it7 a.m. revenue or lane packp95 falls on the same SQLCredits per dashboardWarehouse credits for that refresh, not the account averageSame dashboard before and after one leverCredits fall or stay flat while latency improvesFreshness versus sourceLag from source cutoff to queryable rowsNightly revenue packFreshness holds at the agreed cutoff

The sequence is short. Baseline, rank by total cost, change one lever, re-measure. A pass is a scan drop on that pack without a larger warehouse, a lower p95 on the same statement, credits flat or down, and the cutoff still met.

Practical rule: If credits rise and only the average gets faster, the change fails the pack even when the query profile looks cleaner.

Physical layout still does the heavy lifting. Partitioning and clustering limit what the engine reads. Compression cuts what you store and move. A star schema keeps measurable events on the fact and business context on the dimensions, which is the same modeling idea behind a Snowflake time-series platform that has to stay queryable as volume grows. For a wider checklist of modeling habits worth adopting before you resize, the data warehouse recommendations from BatchData are a useful cross-check, not a substitute for this scorecard.

How to Baseline and Rank the Work

Don't time one SELECT and call the week done. Freeze a busy week, then rank what spends credits.

  1. Freeze the week. Write down database size, concurrent users, the refresh and DML mix, and the queries that gate a decision. For logistics, that's the 7 a.m. lane report, not a sandbox explore.
  2. Baseline after warm-up. Repeat the set. Record p50, p95, and p99, plus bytes scanned, spill, CPU, concurrency, and credits. A power-style view divides size by a geometric mean of time. A throughput-style view uses an arithmetic mean under concurrency. One fast SELECT can't hide a slow load.
  3. Rank by total cost. A large-scale analysis of cloud warehouse traces included 667 million queries, with a median runtime of 0.7 seconds and a 99th-percentile runtime of 120 seconds. The median will flatter you. The tail is what the 7 a.m. meeting feels.
  4. Flag the expensive shapes first. That same analysis found scan-and-filter operations at about 50% of workload activity, and out-of-memory processing at 44.3% of CPU. Full scans, high-cardinality joins, spills, and heavy exchange outrank syntax nits.
  5. Change one item, then rerun the same set. Skip blanket indexes. Benchmark evidence on loading and join indexes shows bitmap join indexes between dimension hierarchy levels slowed some layouts, while a well-matched loading strategy reached gains of up to 50%. Treat 50% as a ceiling you have to retest on your refresh, not a promise.

Attack order for the week

SignalWhat studies showFirst moveRecheckScan and filter shareAbout 50% of workload activityPrune partitions, cluster, and project only needed columnsBytes scanned and p95 latencyOut-of-memory processing44.3% of CPU in the benchmarkShrink joins, spills, and intermediate resultsSpill volume and CPUTail latencyMedian 0.7s and p99 120s across 667 million queriesRank by total cost, not the averagep99 latency and concurrencyRepeated dashboardsSynthetic TPC-H understated cache value versus trace-shaped loadsResult cache, predicate reuse, or a materialized aggregateCache hit rate and creditsRead-only physical designExtra join indexes and denormalization can slow DMLTest the same change on refresh, not only SELECTLoad duration and credits

TPC-H and TPC-DS still compare engines. They don't reproduce your mix of scans, DML, concurrency, and repeated dashboards. Build the rerun from the frozen week.

A tuning change that speeds the lane SELECT and stretches the nightly MERGE has not passed.

Each row above is a column you can point at in the review. Scan share maps to bytes scanned. Memory pressure maps to spill and CPU. The tail maps to p99 and concurrency. Repeated SQL maps to cache hits and credits. The refresh row stops a read-only layout from winning on paper.

Schema Clustering and Query Rewrites

Apply design changes to statements the baseline ranked as expensive. A fleet lead requesting the last seven days for one region needs fewer micro-partitions scanned and a lower p95 on that same SQL. Judge the change against both measures, not average query speed alone.

A professional developer analyzing SQL execution plans on dual computer monitors to optimize database query performance.

Five design moves

  1. Set the grain. Define what one fact row represents, such as a shipment, order line, or meter reading. Keep descriptive context in dimensions instead of copying the OLTP schema directly. A warehouse schema shaped for analytical queries separates reporting structures from the tables that support transactions.
  2. Cluster on columns filtered together. For the seven-day regional query, test ship_date with region. A high-cardinality ID can scatter related rows across partitions, making the date filter less effective at pruning.
  3. Keep predicates usable for pruning. Avoid wrapping ship_date in a function, and select only the columns the dashboard needs instead of using SELECT *. Filter the fact table by date before joining the region dimension so Snowflake can discard irrelevant partitions early.
  4. Check joins for row growth. Use join keys that preserve the intended grain. If a join multiplies shipment lines before filtering, intermediate results can grow even when the final chart is small. Where available, test bloom-style pruning on the same join and compare bytes scanned.
  5. Recluster only when pruning is weak. Check clustering depth and the reclustering credits before changing the table. If the seven-day filter already touches a small slice, reshuffling may add cost without improving the query.

Statements in the order you run them

CREATE OR REPLACE TABLE shipment_fact CLUSTER BY (ship_date, region);



SELECT SYSTEM$CLUSTERING_INFORMATION('shipment_fact');

Then test the dashboard query, not a SELECT *:

SELECT ship_date, region, lane_id, shipment_count, revenue

FROM shipment_fact f

JOIN region_dim r ON f.region = r.region

WHERE f.ship_date >= DATEADD(day, -7, CURRENT_DATE());

Use the statement ID to compare bytes_scanned and partitions_scanned in QUERY_HISTORY. If pruning remains weak, consider ALTER TABLE ... RECLUSTER or automatic clustering, then account for the credits.

A short walkthrough of reading the plan can help the platform lead distinguish a pruning problem from a join or predicate problem:

If partitions scanned barely change, revisit the join or predicate. If they fall and p95 improves on the same SQL, the change has met its workload guardrails. Keep the result isolated before testing another lever.

Caching Views and Warehouse Size

Buy reuse before you buy a larger warehouse. The Redbench workload study showed why synthetic TPC-H and TPC-DS miss production. Real cloud workloads repeat queries and lean on strings. On trace-shaped loads, result caching, predicate caching, and scan-set pruning produced large speedups on systems where traditional baselines suggested caching barely mattered. Collect query history before you redraw the architecture.

Reuse, then size

  1. Leave the result cache intact. Identical dashboard SQL on stable data can hit. A changed literal, an extra comment, or a needless function busts the hit. Pin the lane dashboard text.
  2. Materialize only a repeated aggregate. Daily lane volume is a candidate. Match the refresh to the freshness the report needs, not to a continuous rebuild.
  3. Split load and BI warehouses. A COPY or MERGE on the analyst warehouse evicts the cache they just warmed. Give the nightly pack its own warehouse.
  4. Size to queued concurrency, not to the slowest statement. Scale up for a heavy join window. Turn on a multi-cluster warehouse only when queue time shows, then suspend. Set STATEMENT_TIMEOUT_IN_SECONDS so an explore can't hold an X-Large all afternoon.
  5. Tune stage time and compute together. Elastic designs that separate data management from processing, including the DuoTune evaluation on TPC-H plus a K-means function, improved control of stage time without a universal percent gain. Month-end close can justify a short-lived larger warehouse. Monday ad hoc work should not inherit that size.
CREATE MATERIALIZED VIEW daily_lane_volume AS

SELECT ship_date, region, SUM(shipment_count) AS shipments

FROM shipment_fact

GROUP BY 1, 2;



ALTER WAREHOUSE bi_wh SET

  WAREHOUSE_SIZE = 'MEDIUM'

  MAX_CLUSTER_COUNT = 1

  AUTO_SUSPEND = 60

  STATEMENT_TIMEOUT_IN_SECONDS = 300;

Point COPY and MERGE at load_wh. Keep the dashboard SQL byte-for-byte stable so the result cache can hit. For month-end, raise WAREHOUSE_SIZE on a close warehouse, run the pack, then set it back. Compare credits per refresh, not just elapsed time, between that close window and Monday ad hoc.

If elapsed time falls and credits per refresh rise, you bought speed with a warehouse the workload doesn't need.

Queue time is the signal to scale out. A single slow join is a reason to fix the join or briefly scale up, then suspend. Leaving an X-Large awake for explorers is how a good cache story still misses the credit line.

Guardrails Alerts and Workload Budgets

Cost cuts that ignore the job aren't optimization. In the 2025 State of the Cloud report, cloud-cost efficiency was the leading objective for 87% of organizations, up from 65% the year before. A separate 2025 survey found only 49% of technology leaders believed their architecture could scale cost-effectively, and 43% called inadequate real-time or streaming capability a major data-integration challenge. Idle compute is real. So is a 7 a.m. report that misses because you merged every pipeline onto a warehouse built to suspend.

The budget is per workload, not one cost-per-query target. Hidden cost sits in reprocessing, failed tasks, data movement, and the monitors you skip.

What you don't cut

WorkloadLatency budgetFreshnessCost guardrailDo not sacrificeFinancial reportingp95 inside the close windowAs of the agreed cutoffDedicated warehouse only for the closeA late or restated numberExploratory analyticsMinutes are acceptablePrior day is often enoughSmall warehouse, short suspend, statement timeoutSomeone else's production cacheCustomer-facing appsSub-second to a few seconds at p95Near the app SLAScale for queue time, then suspend off peakAvailability during traffic spikesML feature buildsBatch window, not interactiveStated feature lag, such as hourlyIsolate from BI warehousesTraining on a stale or partial setOperational or streaming pipelinesContinuous, low queueMinutes, sometimes secondsDo not park on a warehouse built to suspendFreshness and failed-job recovery

Financial close keeps a tight latency and freshness budget and may stay on a dedicated warehouse through the window. Exploratory work can live on a small warehouse with a short auto-suspend and a statement timeout. Customer-facing apps care about queue time more than the last credit. Feature builds need a stated lag, not a live join back to the operational system. Streaming pipelines don't belong on a warehouse you suspend for savings.

Automate the line with a resource monitor on the warehouse. Notify near 75% of the credit quota and suspend at 100%. Alert on credit spikes, queue time, spill growth, task failures, and freshness, such as lane data older than 15 minutes.

CREATE RESOURCE MONITOR lane_quota WITH

  CREDIT_QUOTA = 100

  TRIGGERS ON 75 PERCENT DO NOTIFY

           ON 100 PERCENT DO SUSPEND;

The cheapest warehouse isn't the optimized one if the 7 a.m. report is late.

Log the breached row in the budget table before anyone rewrites SQL or resizes compute. Adjust the guardrail first. A credit spike on exploratory SQL is a timeout problem. A freshness breach on the lane feed is a pipeline problem. Mixing those responses is how savings break the job you're trying to protect.

Confirm the Value Before You Scale

A faster query does not guarantee a better business result. Operations problems such as manual workflows and slow issue resolution can limit warehouse value more than query speed. The test is whether the change improves a named outcome without pushing costs or delays into another workload.

A 30-day keep or revert

For 30 days, compare the same scorecard: bytes scanned, p95 and p99 latency, credits per refresh, and freshness. Separate one-time credit savings from recurring savings. A reclustering week that never repeats does not establish a lower run rate.

Tie each change you keep to a business KPI:

  • Revenue pack: minutes cut from the 7 a.m. close.
  • Lane loads: fewer failed refreshes in the same window.
  • Regulatory prep: shorter time to a sign-off file.
  • SLA: adherence on the customer-facing query, not a lab average.

Count engineering time, migration risk, data-quality cleanup, and the cost of maintaining the new monitor. If p95 improves but the 7 a.m. report is still late, investigate the pipeline before scaling the warehouse. If credits fall and freshness holds across every workload class in the budget table, keep the change and test it in the next subject area.

A query profile can look better while a downstream job gets slower. For example, a rewrite may reduce statement time but add pipeline steps that delay the report. Judge the full path from refresh to business output, not just the query in isolation.

Teams reviewing a production Snowflake environment, including schema, workload isolation, and alerting, can work with Faberwork, a Snowflake Partner Network member, to run a baseline and 30-day proof with the internal platform team.

Choose one decision query, such as the nightly revenue pack or the 7 a.m. lane report. Baseline bytes scanned, p95, credits per refresh, and freshness. Change one lever, rerun the SQL, and keep the change only if the scorecard improves and the workload budget still holds.

OCTOBER 30, 2026
Faberwork
Content Team
SHARE
LinkedIn Logo X Logo Facebook Logo