Fast drilldown dashboards from a single Parquet file
hamiltonulmer.com
Fast drilldown dashboards from a single Parquet file
1–10 of 25 posts
Re: Fast drilldown dashboards from a single Parquet file
#2Re: Fast drilldown dashboards from a single Parquet file
#3> your pipeline has to rebuild each customer’s file fast enough to meet the update cadence. ... data that updates on a coarse schedule rather than in realtime
Re: Fast drilldown dashboards from a single Parquet file
#4Re: Fast drilldown dashboards from a single Parquet file
#5A clever repurposing of technologies but realistically only worthwhile for static datasets with range payloads small enough to fit into a web response. > your pipeline has to rebuild each customer’s file fast enough to meet the update cadence. ... data that updates on a coarse schedule rather than in realtime
I expect that if your overall data is less than a GB this trick will work really well for you.
Re: Fast drilldown dashboards from a single Parquet file
#6A clever repurposing of technologies but realistically only worthwhile for static datasets with range payloads small enough to fit into a web response. > your pipeline has to rebuild each customer’s file fast enough to meet the update cadence. ... data that updates on a coarse schedule rather than in realtime
You're making it seem like there's hard limits to what can be done but while there definitely is, you can do incredible stuff.
Re: Fast drilldown dashboards from a single Parquet file
#7For a 40MB file I suggest hosting it directly on GitHub Pages - that's effectively a free CORS-enabled CDN and supports HTTP range requests, so you should be able to get that demo working without needing to involve Cloudflare Workers at all.
Re: Fast drilldown dashboards from a single Parquet file
#8What's the benefit of "data cubes" over caching?
Re: Fast drilldown dashboards from a single Parquet file
#9> The bytes pass through a small Cloudflare Worker on the way, because the free r2.dev URL is rate-limited. For a 40MB file I suggest hosting it directly on GitHub Pages - that's effectively a free CORS-enabled CDN and supports HTTP range requests, so you should be able to get that demo working without needing to involve Cloudflare Workers at all.
Re: Fast drilldown dashboards from a single Parquet file
#10> A dashboard like this one is designed to answer a bounded set of analytical questions ~ requests per day, requests per day for one agency, all-time totals by borough. Each question can be answered by GROUP BY queries, so we can precompute them all ahead of time and save each result as its own small table, called a grouping set. Stack all of the grouping sets in one Parquet file, one section per set, and you have a…
I provide caveats for when this would work vs. when it doesn't in the post. For a lot of customer-facing dashboards, I think it's probably pretty good.