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

100
Vistas
Sequelize asynchronous queries

The terminology used on this question is probably not the most correct one but I hope you get the idea of what I'm asking.

If I have two asynchronous functions fetching and then updating a certain column from a certain row, is it possible for one of them to have fetched the non updated value? Or are the queries made in a way that they await for the other function to update the value before fetching it?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Yes it's possible for both conditions. If you want to fetch column first use and then update column try let row = await model.Rows.findOne(where:condition); let UpdateRow = await row.update(column); in other case try this let updateRow = await model.Rows.update('column'{ where:condition}); let row = await model.Rows.findOne({where:condition]);

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