263
enabling rls took a 40ms select to 6.2s on a 2.1m row table Performance
One policy, the obvious one: There is a btree index on . Before enabling RLS the query planner used it and the endpoint was 40ms. After enabling, shows a sequential scan over all 2,146,880 rows and 6.2 seconds, with…