Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

472
Visualizações
Firestore's where query - number of reads charged

This may sound silly, but I needed to rule out the possibilities behind the document reads of my app on Firestore. When the where query is used using client SDK, are all the documents downloaded to the client and then filtered or they are filtered at the server and returned? Also, what is the case when we use where query with cloud functions?

E.g.: Let's say collection posts have 1000 documents and 10 matches the criteria mentioned in the where query, how many reads I would get charged for if I use

  1. Client SDK 2) Cloud Functions
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

When the where query is used using client SDK, are all the documents downloaded to the client and then filtered or they are filtered at the server and returned?

No, the documents are filtered on the server. You'll only get the documents that represent the result of the query.

Also, what is the case when we use where query with cloud functions?

That's the exact same thing as above.

Let's say collection posts have 1000 documents and 10 match the criteria mentioned in the where query, how many reads I would get charged for if I use

Only 10. You'll always be billed for the number of documents that you read. For instance, if your query returns only ten documents, you be billed only with ten document reads, and nothing more. Bear in mind that it doesn't matter the number of documents you are searching in, but the number of documents your query returns.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda