
I want my User record to track a list of favorites. From my research I think I've found two viable solutions :
- Attach a relationship of the favorited item to the user.
- Have an array of Strings that holds all favorited items IDs, that I can parse later.
Note : The favorited items are all the same type, and therefore from the same collection.
Which would be the proper/best way to handle this?
- and - What are the pros and cons of both methods?
TL;DR
Developers want to track a list of favorites for user records. The two viable solutions are: 1. attach a relationship of the favorited item to the user or 2. have an array of strings storing favorited item IDs.
Pros and cons:
1. Attaching relationship: Pros - easier to query, maintain referential integrity. Cons - can be more complex, potentially slower.
2. Array of Strings: Pros - simpler setup, quicker access to all favorites. Cons - parsing may be required, can be less efficient for large datasets.
Solution: Consider using solution 1 for scalability and better performance, unless dealing withRecommended threads
- ENV vars not updating
When i do `nano .env` it shows `_APP_DOMAIN_TARGET=` as set to my domain, but when i do `docker compose exec appwrite vars` it shows `_APP_DOMAIN_TARGET=` as ...
- Index with the requested key already exi...
I'm using appwrite cli to create DB and I'm getting index_already_exists Is there a way to undestand the index name and maybe to skip if it's already exits?
- Issue - Migration From Cloud > Self Host...
Hi team, I’m trying to migrate a few of my Appwrite projects from the cloud to a self-hosted instance. These projects are currently in “archive mode” due to th...
