When workflows process large datasets or make many API calls, performance optimization becomes critical.
Optimization Techniques
- Batch processing: Use Split In Batches to process items in chunks
- Caching: Store frequently-accessed data to avoid repeated API calls
- Parallel execution: Split work across parallel branches
- Data pruning: Remove unnecessary fields early in the workflow
- Pagination: Process paginated API results efficiently
Identifying Bottlenecks
Check the execution time per node in the execution log. The slowest nodes are your optimization targets.
Memory Management
Large datasets can exhaust n8n's memory. Process items in batches and remove unneeded fields early to reduce memory footprint.