Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(Google Sheets Node): Don't load whole spreadsheet dataset to determine columns when appending data #11235

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

soerenuhrbach
Copy link
Contributor

@soerenuhrbach soerenuhrbach commented Oct 11, 2024

Summary

This change reduces the amount of data that will be loaded to identify columns when appending new rows to a google sheet.

Explanation

Before this change was the whole data set of the spreadsheet loaded, but only a few rows were needed to identity the columns. The problem is that the provided "range" parameter of the execute function only contains the sheet name without any range annotations. In case there would be any range annotations in the range, I extract the sheet name from it.

Related Linear tickets, Github issues, and Community forum posts

Github issue #11234

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

This change reduces the amount of data that is been loaded when appending new rows to a google sheet. 

Before this change was the whole data set of the spreadsheet loaded, but only a few rows were needed to identity the columns.

The issue is that the provided "range" parameter of the execute function only contains the sheet name without any range annotations.

In case there would be any range annotations in the range, I extract the sheet name from it.
@CLAassistant
Copy link

CLAassistant commented Oct 11, 2024

CLA assistant check
All committers have signed the CLA.

@soerenuhrbach
Copy link
Contributor Author

Loaded data before the change of this pull request:

image

Loaded data after the change of this pull request has been applied:

image

@n8n-assistant n8n-assistant bot added community Authored by a community member node/improvement New feature or request in linear Issue or PR has been created in Linear for internal review labels Oct 11, 2024
@Joffcom
Copy link
Member

Joffcom commented Oct 11, 2024

Hey @soerenuhrbach,

Thanks for the PR, We have created "GHC-311" as the internal reference to get this reviewed.

One of us will be in touch if there are any changes needed, in most cases this is normally within a couple of weeks but it depends on the current workload of the team.

Copy link
Contributor

@michael-radency michael-radency left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @soerenuhrbach, LGTM 👍

@michael-radency michael-radency merged commit 26ad091 into n8n-io:master Oct 15, 2024
27 of 31 checks passed
@soerenuhrbach soerenuhrbach deleted the bug/11234 branch October 15, 2024 05:19
@github-actions github-actions bot mentioned this pull request Oct 16, 2024
@janober
Copy link
Member

janober commented Oct 16, 2024

Got released with [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Authored by a community member in linear Issue or PR has been created in Linear for internal review node/improvement New feature or request Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants