Tag

Promise.all

0 views collected around this technical thread.

KooFE Frontend Team
KooFE Frontend Team
Oct 16, 2022 · Frontend Development

How to Optimize Data Fetching in React for Better Performance

Learn how to optimize data fetching in React by understanding initial vs on‑demand requests, avoiding waterfall patterns, leveraging Promise.all, parallel promises, data providers, and browser limits, while applying best practices for useEffect, lifecycle handling, and performance‑focused component design.

PerformancePromise.allReact
0 likes · 26 min read
How to Optimize Data Fetching in React for Better Performance
System Architect Go
System Architect Go
Jun 28, 2017 · Backend Development

Cross-Collection Loop Queries in Mongoose: From Naïve While Loops to Promise.all

The article explains how to perform a cross‑collection loop query with Mongoose, illustrates why using a synchronous while loop blocks Node's event loop, and shows the correct approach of using Promise.all with async handling to merge results efficiently.

AsyncCross-Collection QueryMongoose
0 likes · 3 min read
Cross-Collection Loop Queries in Mongoose: From Naïve While Loops to Promise.all