SupabaseS
Supabase•6mo ago
Yifan

RPC vs Dircet Query using supbase client

Hey! 👋

We’re thinking of standardizing how we interact with Supabase across our codebase, and had a couple quick questions:

What are the main differences between using direct queries (.from(...).select(...)) vs RPCs?

Are there any best practices or tradeoffs we should consider when choosing between the two?

Right now we don’t have RLS enabled, but we’re planning to add it in the future — does that change how we should structure things now?

Appreciate any thoughts or advice!
Was this page helpful?