Custom Actions vs API - Which is faster?

Lets say, I'm implementing a "Check if username" exists and my backend is Supabase.

I can use API or custom actions to check if the username exists - but has anyone ever tested which is more performant or faster?

I'm assuming the answer could quite possibly be API since the custom function also at the end sends an API request.

1 reply