Hey guys, I just build a social app where users can post videos, share image and text, users can like, share and comment on post, but I want a situation to show the numbers of view on a post.
Please how do I achieve this?
Everytime the post comes in to view, check if the currenr user has already "seen" it. If not, add a new item. Incrementing count on every seen would inflate the view count exponentially due to duplicity.
Maybe add an array attribute in the same post document, or create a relation with a collection or a complete separate collection for the same.
An array based attribute could get harder to manage though if the size grows substantially.
Recommended threads
- how to access the value of account statu...
- What does it means
I am looking for Appwrite for migration, but i am confused with the term "Unlimited" in Pricing table of Documents . Kindly Let me know what does it ...
- Migration and Function glitch
I am trying to migrate from non pro appwrite project to pro appwrite project all my data but it's stuck in processing.