Where costs hide

  • Queries that read too much. In warehouses that charge per scanned data, a query on a large table without a date filter can cost more than the load that feeds it.
  • History nobody queries. Copies, temporary tables and old versions that keep taking space month after month.
  • Forgotten environments. Tests and developments left running.
  • Reprocessing. Failed loads rerun in full instead of in parts.
  • Data movement. Egress between regions or out of the cloud that wasn't in the design.

Practices that work

  • Partition and cluster large tables by the fields people actually filter on.
  • Set limits on processed data per query and per user.
  • Label resources by project and team to know who spends what.
  • Budgets with alerts, not just end-of-month reports.
  • Expiry policies for temporary tables and history.
  • A short monthly review: the ten most expensive items and what can be done about each.

Cost as a requirement

Cost is one more requirement, like performance or security. Designing with it in mind from the start is far cheaper than optimising once the bill has arrived.