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
- Retrieving Data From Backups
Hiya, I have a user requesting for data they accidentally deleted. I don't have document history built into my app. Is there a way to extract data from the auto...
- Free trial credit?
I understand that another person I know got a free 50 dollar credit promo as a banner in his project but I fail to see one in mine. Is such promo not for everyo...
- Go 1.25 runtime
So I'm trying to use go 1.25 for my functions and I can only find go-1.23 as a function runtime. So I did some searching and found https://github.com/appwrite/a...