#555 [API/Perf] tasks.py N+1 query pattern in list_tasks

closed high Created 2025-12-17 16:30 · Updated 2025-12-17 20:02

Description

Edit
File: api/blueprints/v1/tasks.py:117-131. When no queue filter, runs separate COUNT queries for each queue (3 queries), then builds UNION ALL query. FIX: Combine count queries using single UNION ALL.

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...