I am trying to input over 6000 rows of data from PostgreSQL into Microsoft Excel 365 using N8N. However, I am encountering a “Gateway timed out - perhaps try again later?” (504 Gateway Timeout) error when processing the large dataset.
What I’ve tried:
Using the PostgreSQL node to retrieve data and sending it directly to Microsoft Excel 365 node for appending.
The process works fine with smaller datasets, but fails when processing 6000+ rows.
I’ve confirmed that using a smaller portion of the data works fine, so it’s specifically the large dataset causing the issue.
What are the best practices for processing large datasets in one go without running into timeout errors, and is there a way to increase the timeout or optimize the process for better performance?