Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

225
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda