PR REVIEWSequential Awaits — N×1 Second Dashboard Load#631DatadogVercel
00:00Junior~10 min
PULL REQUEST
Open#631 · 1 commit
Sequential Awaits — N×1 Second Dashboard Load
junior-dev-99 wants to mergefeature/dashboard-analytics-widgetmain
JU
junior-dev-99
1 file changed · 1 day ago
YOUR MISSION
The dashboard API endpoint takes ~3 seconds to respond after a junior dev added two additional data sources. Each individual query runs in ~1 second. Prod monitoring confirms no slow queries. Find the structural bug.
Junior~10 min
HINTS (0/3 used)
REVIEWING AS
SR
Senior Engineer
@ Datadog · Backend Platform
src / api / dashboard.ts+2 0
3
3
export async function getDashboardData(userId: string) {
4
4
const user = await fetchUser(userId);
5
+
const posts = await fetchPosts(userId);
+
6
+
const analytics = await fetchAnalytics(userId);
+
5
7
return { user, posts, analytics };
6
8
}
Click any changed line (+/−) to flag an issue · or Approve if everything looks safe