chunking non-large requests?
AllNarrowQuokka11 months ago
Hey there,
Quick question: provided I stay on the right side of a 'large request' (<28 days), will all of the user's data come in one single ingest. I appreciate that daily, sleep and body will come as separate events if i request each for the last 27 days, but will I just get 3 payloads sent to me with multiple 'data blocks' or is it possible that the data for the last 27 days of, say, daily, will be broken into different payloads?
Thanks, Josh
Vanessaadmin10 months ago
Hi there,
That's correct. For requests under 28 days, you'll receive separate events for each data type you request (daily, sleep, body, etc.), but each data type will come in a single payload containing multiple data objects in the data array.
When chunking occurs for large requests (>28 days of data), all chunks will contain the same terra-reference header value, allowing you to track when the complete data transfer is finished!
NarrowQuokka10 months ago
Thanks so much!
Vanessaadmin10 months ago
You are very welcome!