Because RLS policies append WHERE user_id = auth.uid() to every query, always add a B-Tree index on user_id (or org_id) to keep queries blazingly fast!
ADVERTISEMENT
We use cookies to collect and analyse information on site performance and usage, and to enhance and customise content and advertisements. Learn more
Required for basic website functionality.
Help us understand how visitors interact with the site.
Used to show relevant ads and measure ad performance.