Feature flag full table scan

Code reviewMedium18 min

Your task

Review this Go function that checks whether a feature flag is enabled for a tenant. The flags table is large and the function is called on nearly every request.