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

223
Vistas
Is Paging efficient in Objectionjs orm?

On every paged query, I see 2 query one is query with limit and offset. One is count.

Does this have any performance issues on every request when there are multiple joins?

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

0

JOINs may or may not be a problem. It depends on whether the JOIN must be completed before doing the pagination.

If the Optimizer cannot get to the OFFSET and LIMIT soon enough, it will have to generate all the possible rows, sort them, skip over OFFSET rows, then finally deliver LIMIT rows.

If the Optimizer can do better, then the first page is fast; the second page is twice as slow; etc. Each page is slower and slower because of having to step over all the previous pages.

That is, OFFSET is the real problem. It is better to "remember where you left off".

More discussion (aimed at MySQL; it may be awkward to map the fix to your framework layer): http://mysql.rjweb.org/doc.php/pagination

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