When structuring data in Appwrite DBs, is it generally recommended to plan for normalization or denormalization?
As in, should I have a single source of truth for all entities and effectively join data when querying? Or should I add redundant copies of data where it makes sense and just reference the duplicated data in my UI?
Only depends of your needs, appwrite is just a tool
Appwrite use a SQL database, with join capacibilities. you can work with or without
I usually normalize
Okay thanks @Bouahaza and @Steven, I was writing it in a normalized fashion to begin with so this is good news 🙂
@Bouahaza do you happen to know if the join capabilities are documented anywhere?
Take a look : https://appwrite.io/docs/databases-relationships
Oh wow thank you @Bouahaza! Not sure how I missed this 😅
Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...