Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

224
Views
Pay per for each get method in a firebase function?

Hey im trying to figuring out if i have a firebase function and inside 4 get methods like this


export default functions
  .runWith(runtimeOpts)
  .firestore.document("ParentComment/{commentID}")
  .onCreate(async (snap, context) => {
    try {
      const db = admin.firestore();
      const { videoID, author, text,videoowner } = snap.data() || {};
      const ref = db.doc(`videos/${videoID}`);
      const videouid = await db.doc(`videos/${videoID}`).get();

      const userSnap = await db.doc(`meinprofilsettings/${author}`).get();
      const { commentID } = context.params;
  
      const recoveringuser1 = await db.doc(`Recovering/${videoowner}`).get();
      const recoveringuser2 = await db.doc(`Recovering/${author}`).get();
…

do i have to pay for each get method? or does it count as 1 read?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The pricing elements for Firestore in play here are:

  • Document Reads: as the name implies, you will be charged for each document that your code causes to be read from the database on the server. Since you are reading 4 individual documents, there are 4 charged document reads
  • Network Bandwidth: you may also be charged for the bandwidth that is consumed for transferring the data. If the Cloud Function and Firestore are in the same region, this charge is waved.

For more on this, I recommend reading the Firestore pricing page in the documentation.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!