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

Research possibility of running Cloud Function into Cloud Storage #4

Open
yoiang opened this issue Nov 2, 2017 · 6 comments
Open

Comments

@yoiang
Copy link
Member

yoiang commented Nov 2, 2017

No description provided.

@jeremylorino
Copy link
Contributor

@yoiang whats the thinking here? In a func you would use this lib to backup your firestore db to a gcs file?

@yoiang
Copy link
Member Author

yoiang commented Feb 4, 2018

That's one possibility! Another that comes to mind is to do the (currently little bit) of processing done on each document.

I'm honestly not well acquainted with it yet so I don't know its limitations. For example, would it be possible to spawn additional processes to divide the work of querying and recording collections, fork again on subcollections, and sub-subcollections, etc?

@jeremylorino
Copy link
Contributor

jeremylorino commented Feb 4, 2018 via email

@jeremylorino
Copy link
Contributor

@yoiang this is kinda what I was thinking in regards to uploading to GCS. Because the backup flow is serial the time to backup the db is much longer, but we can tackle parallelization next.
forked commit

@yoiang
Copy link
Member Author

yoiang commented Feb 28, 2018

Yah, I agree that local parallelization (as opposed to what the remote parallelization we're discussing) should be the next task along with further work towards restoring.

@jeremylorino
Copy link
Contributor

@yoiang have you made progress here?

I was thinking of implementing parallelization by having the cli call itself and passing a document path for context.

Seems like this will allow a good amount of reuse and the ability in the future to offload the work via a different mechanism later.

Thoughts?

@jeremylorino jeremylorino mentioned this issue Mar 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants