mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 03:45:06 +03:00
* fix(policy editor): reduce number of table role access queries On the Policies page, every single PolicyTableRow fires off its own table roles access query (because each query is keyed to an individual table). For users with many tables (400+), this causes the API to rate-limit the dashboard. Changed so that the table roles access query now fetches information for the entire schema in one go, then organizes it by table. * Nit refactors * refactor: return minimal data from table access query All we need to know is whether a given table has anon or authenticated access, so just query for the list of tables that match that criteria from information_schema.role_table_grants. * refactor(policies page): more efficient sql query for getting anon/auth access tables --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>