Closed ISnackable closed 5 months ago
This is still a valid option as postgresql is faster in term of read/write. Using supabase also allows us to entirely remove backend. allowing us to move to pure react, without needing us to host on vercel.
However, there still need to be some sort of validation, this means we require advance knowledge of postgresql.
Also for admin role: https://github.com/supabase-community/supabase-custom-claims
https://github.com/orgs/supabase/discussions/1148#discussioncomment-2222768
Okay, I decided that I'm too lazy and don't care about implementing this.
Wait... I could probably do this but I'll take a long ASS time track: https://github.com/ISnackable/saf-duty/tree/wip/migrate-to-supabase
Done!
Below is the simple comparison of the two database as a service products.
supabase uses a relational database management system called PostgreSQL, it offers a free-tier hobby plan with:
sanity.io is a schemaless database built on top of Google cloud, it offers a free-tier plan with:
Additional notes:
Sanity is comparable to Firebase in how they store data, where firestore allows you to store “documents”. sanity.io is also the same and they basically use their plan. Thus, it may also be a viable option to switch to Firebase.