Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Read file from Storage bucket and store into Fire store collection

Hi ,

 

Could you please help me on the best approach to achieve read a file from Storage bucket and store in to a fire store collection 

0 3 203
3 REPLIES 3

Hi @lakshmisaru ,

What programming language are you using? I would suggest using client libraries for programmable approach.

Regards,
Marc

Hi Marc,

programing language is Node js. And the file is very large mostly millions of records. I need to read them and store it into a db.

Do we have any best approach in this case like cloud functions or cloud Job or is there any other options available 

Also i could not find any example on this would you be able to suggest one.

 

thank you

 

 

 

Hi @lakshmisaru ,

It will solely depend on your use-case. I would suggest using Cloud Functions to be able to program what you need to do with the data and how you will insert it into Firestore. I'm not also sure what kind of "file" you are pertaining to. There could be more than one best approach for your use-case and as for the millions of records; I'm afraid that you can't store it directly to Firestore because Firestore does have limitations to its documents. Read Usage and limits.