robson poffo
All projects

May 2026

Memory-Optimized Query Engine

An in-memory serving layer in front of BigQuery that gives dashboards sub-second latency while sharply cutting BigQuery slot cost — Looker Studio reads from it instead of hitting BigQuery directly.

DuckDBBigQueryLooker StudioQuery OptimizationCost OptimizationSub-second Latency
Low-latency insights architecture — Arrow/DuckDB in-memory layer serving Looker Studio in front of BigQuery

Every dashboard refresh and exploratory query hit BigQuery directly — burning slots, slowing down analysts, and running up costs with each interaction.

To fix this, I placed DuckDB as an in-memory data access layer in front of BigQuery. Hot, frequently-queried data lives in DuckDB; Google Data Studio (now Looker Studio) reads from there instead of going straight to the analytical engine. Repetitive reads never reach BigQuery, so slots are reserved for the queries that actually need them.

Impact:

  • Sub-second response times for interactive dashboards
  • A significant reduction in BigQuery slot costs by keeping repetitive reads off the analytical engine
  • Lower query latency across the data-access path overall
Component diagram