Documentation Index
Fetch the complete documentation index at: https://support.detrics.io/llms.txt
Use this file to discover all available pages before exploring further.
Last updated: May 14, 2026
Why Chunking Exists
Marketing platforms impose limits on how much data a single API request can return — and even when they don’t, very large requests are slow and fragile. Without chunking, a single timeout or transient error would lose the entire sync’s progress. Chunking solves three problems at once:- Timeouts — Each chunk runs in its own request, well under the platform’s time limits
- Memory — Detrics never holds an entire historical backfill in memory at once
- Recovery — If a sync is interrupted, completed chunks are preserved; only the remaining chunks need to be retried on the next run
How Chunks Are Split
Chunking happens along two axes:- Time range — Long date ranges are split into segments (typically by calendar month)
- Account batches — Many accounts are processed in smaller groups
| Example | Chunk Size |
|---|---|
| Meta Ads — ad-level metrics | ~1 month × 5 accounts per chunk |
| Meta Ads — campaign-level metrics | ~12 months × 25 accounts per chunk |
| Google Ads — keyword-level | Smaller chunks (high cardinality) |
| Google Ads — account summary | Larger chunks (low cardinality) |
Chunk Order
Chunks are executed in recent-first order: the most recent time windows are fetched before the older ones. This means fresh data lands in BigQuery first, so even if a long initial backfill is paused or interrupted, you still have usable recent data to query.What You See in the UI
In the Run History of a transfer, each table row showsX/Y chunks when chunking was used (e.g., 4/4 chunks means all 4 chunks completed successfully, 12/13 chunks means one chunk failed or is still retrying).
If you don’t see a chunk count, the table was fetched in a single request — no chunking was needed for that run.