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

191
Vistas
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 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