#541 [API/Perf] auth_wrapper.py N+1 query in get_user_accessible_tenants

closed high Created 2025-12-17 16:29 · Updated 2025-12-17 18:57

Description

Edit
File: engine/security/auth_wrapper.py:311-330. Loops through ALL tenants making separate auth query for each. For 100 tenants = 100+ DB round-trips during OAuth login. IMPACT: Login time scales linearly with tenant count. FIX: Single JOIN query.

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...