{# Audit "Storage Optimization" — surfaces every active storage_billing_optimization opportunity as a clickable row plus an inline-revealable ALTER SCHEMA snippet. Audit is read-only, so the "Action" button copies SQL for the user to paste into the BigQuery console — it never submits. Only renders when storage_panel is non-empty (the include guard lives in dashboard/index.html). #}

Storage Optimization

Datasets where switching from logical to physical billing would reduce monthly storage cost · click any row for full evidence · use the action to copy the ALTER SCHEMA SQL

{{ storage_panel | length }} dataset{{ '' if storage_panel | length == 1 else 's' }}

{% for row in storage_panel %} {% endfor %}
Dataset Tables Current $/mo Projected $/mo Monthly savings Compression Action
{{ row.dataset_short }} {{ row.table_count }} ${{ "%.2f"|format(row.current_cost_monthly) }} ${{ "%.2f"|format(row.proposed_cost_monthly) }} ${{ "%.2f"|format(row.monthly_savings) }} ({{ "%.0f"|format(row.savings_pct) }}%) {{ row.compression_ratio }}:1