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

132
Vistas
javascript - proper way to do thousands of $.getJSON calls to avoid ERR_INSUFFICIENT_RESOURCE

Problems:

I'm doing some data lookup from a website contain thousands of .json files, now I'm reading those .json with a straight forward for loop $.getJSON calls. It works fine within ~3000 files, but when the size goes up to 5000 or even 20000 (max number I've to read). The Chrome browser becomes super slow or get ERR_INSUFFICIENT_RESOURCE.

What I'm doing right now:

  1. scan through data example.org/1.json to 20000.json
  2. read these .json content into arrayone[], process array of data captured
  3. based on arrayone[], I do another $.getJSON on example.org/someplace/1.json to 20000.json
  4. read these .json content into arraytwo[]
  5. compare arrayone[] & arraytwo[]

So given I've to read 20000 files, it's actually 40000 $.getJSON call.

Seek helps:

Is there a smarter way to read multiple .json with better performance? Hope it's clear, thanks in advance!

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