Hi, I build a workflow to get all posts on a forum via an open API, and post them into a PostgreSQL database. The workflow quickly throws a Javascript out of memory error.
- The API does not require any credential in case you want to test it
- The main workflow only uses the Endpoint cursors as data
- The subworkflow get / process / store all the data (and should clear memomy for the next batch)
- The subworkflow handle data by batch of 25
- For information our server has 10G of RAM allocated, the workflow seems to crash after around 7300 lines processed.
Note: This seems to be a smilar issue to Release memory in subworkflow - n8n cloud
Am I doing something wrong here or is there an other way to process large amount of data properly?
Main workflow
Subworkflow
Information on your n8n setup
- n8n version: 0.221.2
- Database: PostgreSQL
- n8n EXECUTIONS_PROCESS setting: Queue
- Running n8n via: Docker
- Operating system: Ubuntu 18.04.5 LTS

