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

198
Visualizações
Long, additional network calls after performing Firebase Firestore query?

My web application performs the following Firebase Firestore query:

<script defer src="/__/firebase/9.6.5/firebase-app-compat.js"></script>
<script defer src="/__/firebase/9.6.5/firebase-firestore-compat.js"></script>
<script defer src="/__/firebase/9.6.5/firebase-storage-compat.js"></script>
<script defer src="/__/firebase/9.6.5/firebase-analytics-compat.js"></script>
<script defer src="/__/firebase/init.js?useEmulator=false"></script>
<script>
      document.addEventListener('DOMContentLoaded', function() {
        firebase.firestore().collection("users").where("username", "==", username).limit(1)
            .get()
            .then((querySnapshot) => {
                //…
            })
            .catch((error) => {
                //…
            });
      });
</script>

The single query results in 3 network calls: network call size and duration

The first call is the query request written explicitly in my code snippet. The third call contains “removeTarget”:2 in the payload.

My biggest concern is this second call below that takes 1 minute to execute, sometimes being several Kilobytes in size:

https://firestore.googleapis.com/google.firestore.v1.Firestore/Listen/channel
?database=projects%2F<omitted>%2Fdatabases%2F(default)
&gsessionid=<omitted>
&VER=8
&RID=<omitted>
&SID=<omitted>
&CI=0
&AID=0
&TYPE=xmlhttp
&zx=<omitted>
&t=1

The GET response was an empty 200 with the following duration:

network call duration

What are these second and third calls? I am especially interested in what the second call is given the duration and size of the call.

about 4 years ago · Juan Pablo Isaza
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