Hey! Does anybody know how to restrict the database to 1 insert at a time? I want to build an app that needs data synchronized but it also relies on that same data for validation. Thanks!
t
tourdownunder
01/08/2022, 5:52 AM
Supabase uses Postgres and it’s amazing at keeping integrity. Read up on Postgres unique keys and check constraints.
h
Homemadesteam58
01/08/2022, 6:31 AM
So would that mean that I could lock the database during a write then unlock afterwards again?
t
tourdownunder
01/08/2022, 7:58 AM
You likely won't need to. What exactly do you need to do?