Apr 06, 2021 08:09 AM
Hello,
I’m reading documentation here on the rate limits for the Blocks API and I’d like some clarity around these two statements:
Batch methods (
updateRecordsAsync
,createRecordsAsync
,deleteRecordsAsync
) may only update/create/delete up to 50 records in one call.
Additionally, writes are rate-limited (maximum of 15 writes per second). Your app will crash if this limit is exceeded.
Two questions:
What is a “write”? Does calling a batch method count as 1 write?
Assuming that a batch method counts as a single write, does this mean that it’s possible to update 750 records a second (15 batch methods a second * 50 records per full batch) via the Blocks API
Many thanks
Solved! Go to Solution.
Apr 06, 2021 12:26 PM
Hi @Eugene_Kim,
A write (in the context of 15 writes/second) refers to a single function call, e.g. updateRecordsAsync
. A batch method still counts as a single write.
Correct, this would be the upper limit.
Apr 06, 2021 12:26 PM
Hi @Eugene_Kim,
A write (in the context of 15 writes/second) refers to a single function call, e.g. updateRecordsAsync
. A batch method still counts as a single write.
Correct, this would be the upper limit.
Apr 06, 2021 12:29 PM
Great, thanks for the quick reply @Billy_Littlefield !
Dec 14, 2022 07:40 PM
I am trying to write 850 records into the database at once but keep getting this error. Would this be due to record limit?
[Error: {'type': 'INVALID_REQUEST_BODY', 'message': 'Could not parse request body'}]")