Problem with the MongoDB Insert Documents

I want to add a JSON with 10,000 values to a MongoDB collection. The values are added correctly, but the insert node just keeps running and the server crashes. What can I do?

  • n8n version: 1.82.1
  • Database (default: SQLite): /
  • n8n EXECUTIONS_PROCESS setting (default: own, main): main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Linux

Hey @JDB
Welcome to the community!

You can try using the Loop Over Items nodes to process the CSV in batches:

Something like this:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.