Hacker News new | ask | show | jobs
by kiwicopple 1160 days ago
for when it really matters, then you should just use a Postgres Function. That will be an order of magnitude faster than anything you do to match the region.

Supabase has auto-generated APIs (using PostgREST), so you can execute a Postgres Functions like this:

    const { data, error } = await supabase.rpc('echo', { hello: 'world' })