Skip to content

[Node - Google Sheets V2]: Appending rows loads unnecessary data #11234

Description

@soerenuhrbach

Bug Description

I'm using Google Sheets Node v2 to append rows to a single Google Sheet with more than 10.000 rows (and 35 columns) in that sheet.

When running "update", "append" or "appendOrUpdate" operation leads to high memory when modifying sheets with a bigger amount of data. This results in performance and in worst case in out of memory exceptions. The n8n application crashes in my case.

It seems that running all of these operations loads the whole spreadsheet before inserting. I understand, that it's necessary to load all rows for update operations.

To Reproduce

  1. Create big set of data in google sheets with more than 10k rows and 35 columns.
  2. Create a workflow to insert a single row in that google spreadsheet using "append" operation of Google Sheets v2 node
  3. Run workflow

Expected behavior

My expectations for the "append" operations is ...

  • appending rows doesn't require to load any other rows expect the key row to identify the columns
  • the performance of the operation is not affected by the amount of data in the spreadsheet

Operating System

Docker

n8n Version

1.63.1

Node.js Version

20.10.0

Database

PostgreSQL

Execution mode

main (default)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions