India’s Leading Domain & Web Hosting Provider
Apparel retailer cuts BigQuery spend 52% while dashboards get faster
Apparel and footwear retailer, 540 stores, online store and marketplace sales · Google Cloud Mumbai · 8 weeks
As-is situation
BigQuery spend had grown from about INR 9 lakh to INR 26 lakh a month in 14 months on on-demand pricing. A 46 TB sales-line table was partitioned by ingestion time but filtered by business date, so most queries scanned it fully. Looker Studio dashboards for 540 store managers queried the raw table on every load. Three Dataform pipelines fully rebuilt inventory snapshots every hour. Finance saw one BigQuery line on the invoice and could not tell merchandising, marketing and supply chain costs apart.
- Monthly BigQuery spend nearly tripled to INR 26 lakh in 14 months
- Store dashboards scanned a 46 TB table on every load
- Hourly full rebuilds of inventory snapshots in three pipelines
Approach, tools and architecture
NTSPL joined INFORMATION_SCHEMA.JOBS with the billing export and found 18 query patterns behind 64% of cost. The sales-line table was repartitioned by business date and clustered by store and SKU; a daily store aggregate now serves store dashboards with BI Engine. Inventory pipelines became incremental with a 3-day lookback. Datasets with high compression moved to physical storage billing. A modest Enterprise edition baseline reservation with autoscaling now serves ELT and dashboards, while ad-hoc projects stay on-demand with per-user custom quotas. Labels attribute every job to a team.
Implementation approach
Measured results
Operational improvements
- Merchandising and marketing see their own BigQuery cost weekly and own fixes
- New tables above 1 TB require partition filters before they can be queried
Cost considerations
The baseline reservation is sized for weekday business hours, with autoscaling for month-end and sale events. Ad-hoc projects remain on-demand because their use is too irregular for slots to pay off. Reservation size is reviewed every quarter against utilisation.
Return on investment
Savings of about INR 13.5 lakh a month, or INR 1.6 crore a year, against a sprint cost of INR 22 lakh. Payback was under two months, and faster store dashboards raised weekly active store managers.