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

Read headers in batch on getRows() #693

Merged
merged 6 commits into from
Aug 31, 2024
Merged

Conversation

adrinr
Copy link
Contributor

@adrinr adrinr commented May 16, 2024

The current flow, when running getRows, checks if the headers are loaded. If they are not, we first load the headers and then we run the get. These 2 calls are slow, and they can be speed up using the batchGet endpoint provided by google

@theoephraim
Copy link
Owner

Sorry for the delay. This is great! Will get this merged soon :)

@theoephraim theoephraim merged commit f73eb18 into theoephraim:main Aug 31, 2024
1 check passed
theoephraim pushed a commit that referenced this pull request Aug 31, 2024
* Get header on batch when reading without header loaded

* Add tests

* Added await to processHeader function as failure would cause an unhandleRejection error and crash the BB server

* Adding yarn.lock, publishing new named version.

---------

Co-authored-by: Dean <[email protected]>
Co-authored-by: Michael Drury <[email protected]>
junedomingo added a commit to junedomingo/node-google-spreadsheet that referenced this pull request Sep 23, 2024
* main:
  wiring up github action to dmno
  chore: release v4.1.4
  add dmno and remove/encrypt test-related secrets, swap jest for vitest
  fix(updateProperties): getFieldMask ignore gridProperties (theoephraim#674)
  chore: release v4.1.3
  fix bugs introduced by PRs
  update axios, fix new google-auth-library issue, fixes theoephraim#701 theoephraim#700
  Read headers in batch on getRows() (theoephraim#693)
  Update authentication.md
  allow CI manual reruns
  Update FUNDING.yml
  use correct type in docs

# Conflicts:
#	.gitignore
#	pnpm-lock.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants