# Right way to send batches to Baserow?

**URL:** <https://community.n8n.io/t/right-way-to-send-batches-to-baserow/17299>\
**Category:** Questions\
**Tags:** baserow\
**Created:** [September 2, 2022, 3:47am UTC](https://community.n8n.io/t/right-way-to-send-batches-to-baserow/17299 "2022-09-02T03:47:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![th3liam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/th3liam/32/42106_2.png) [@th3liam](https://community.n8n.io/u/th3liam)\
**Post date:** [September 2, 2022, 3:47am UTC](https://community.n8n.io/t/right-way-to-send-batches-to-baserow/17299/1 "2022-09-02T03:47:36Z")

</div>

## Describe the issue/error/question

Hello fellas.  
I was wondering, what the right way is to create batch records to baserow. It seems obvious that the Set node + Aggregate Item + Split In batches would be the key but I can’t get it to work properly.

How should I approach it?

I have used the Baserow node, however, workflow execution time crashes on record # 912, more less. And I need to update a couple of thousands records at a time. Thanks!

## Please share the workflow

## Share the output returned by the last node

{“error”:“ERROR\_REQUEST\_BODY\_VALIDATION”,“detail”:{“items”:[{“error”:“Ensure this field has no more than 200 elements.”,“code”:“max\_length”}]}}",

## Information on your n8n setup

- **n8n version:** 0.191.1
- **Database you’re using (default: SQLite):** yup
- **Running n8n with the execution process [own(default), main]:** own
- **Running n8n via [Docker, npm, n8n.cloud, desktop app]:** docker on vultr

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [September 2, 2022, 6:15am UTC](https://community.n8n.io/t/right-way-to-send-batches-to-baserow/17299/2 "2022-09-02T06:15:26Z")

</div>

Hi @th3liam, if your workflow execution crashes when processing a large number of items there’s a good chance your n8n instance ran out of memory. You might want to check the server logs to be sure about this.

To avoid this you’d typically want to use a sub-workflow. In your parent workflow, use the SplitInBatches node to split your execution into smaller chunks, then send these smaller chunks to a sub-workflow using the [Execute Workflow](https://docs.n8n.io/nodes/n8n-nodes-base.executeWorkflow/) node. Run the Baserow operation (this should work using the regular Baserow node) and finally use a Set node executing only once to return only a single item like `{ success: true }` to your parent workflow.

What now happens is that the memory used to execute your sub-workflow becomes available again for the next batch. This should help dealing with larger datasets on instances with limited memory.
