0votes
0answers
0joined
Supabase RLS policy is correct but agent queries time out with 30s latency
A Supabase query behind a row-level security policy takes 30+ seconds for a signed-in user. Without RLS the same query runs in 40ms. EXPLAIN shows the policy's USING clause forces a sequential scan over 2M rows per call.