Skip to content

Conversation

@tohhsinpei
Copy link
Member

Description

b/278767412
API proposal: go/firebase-database-import

Sample Commands

firebase database:import / data.json --chunk-size 20 --concurrency 10

@codecov-commenter
Copy link

codecov-commenter commented Apr 24, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01 ⚠️

Comparison is base (2eb42bc) 55.58% compared to head (8060d72) 55.58%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5726      +/-   ##
==========================================
- Coverage   55.58%   55.58%   -0.01%     
==========================================
  Files         324      324              
  Lines       21977    21975       -2     
  Branches     4480     4479       -1     
==========================================
- Hits        12217    12215       -2     
  Misses       8679     8679              
  Partials     1081     1081              
Impacted Files Coverage Δ
src/database/import.ts 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@tohhsinpei tohhsinpei requested a review from joehan April 24, 2023 20:36
private dataPath: string,
private chunkSize = MAX_CHUNK_SIZE
private chunkBytes: number,
concurrency: number
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason this can't be private as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

It can be; I just don't need it outside of the constructor.

@tohhsinpei tohhsinpei enabled auto-merge (squash) April 25, 2023 15:21
@tohhsinpei tohhsinpei merged commit 5a8b2ac into master Apr 25, 2023
@tohhsinpei tohhsinpei deleted the hsinpei/database-chunk-2 branch April 25, 2023 15:41
ProfHercules pushed a commit to ProfHercules/firebase-tools that referenced this pull request May 5, 2023
…irebase#5726)

* Allow user to configure database:import chunk size and concurrency

* Cap chunk size at NGINX max payload size
tonyjhuang pushed a commit that referenced this pull request May 22, 2023
…5726)

* Allow user to configure database:import chunk size and concurrency

* Cap chunk size at NGINX max payload size
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.

3 participants