0
votes

Database : Firebase Firestore

Images : Firebase Storage

I need to create a word document with the data from Firestore and images from Firebase storage. That document will have 1000+ images with data. How to achieve this effectively using firebase cloud function?

1
what do you mean by "word document"? - Methkal Khalawi
I mean word document(.docx) - Dinesh S

1 Answers

1
votes

I don't believe using Cloud Functions for this use case is the best. You are trying to create a word document with so much data (more than 1000+). This will take time and your function may timeout before it finishes its job.

better to use the admin sdk in an environment of your choose (like your local machine or GCP compute engine). Then programmatically (with a language of your choice) grab the data from both firestore and storage and save them in a new word document.

for more info about firebase admin sdk, check this documentation