{# 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). #}
| 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 | |
|
Run this in the BigQuery console under a principal with
{{ row.alter_sql }}
|
||||||