I have plan to create blog app with design attached. Any suggestion about model to achieve this requirement:
- Popular post monthly, weekly, daily.
- How to display views count, should if anyone visit or hit database, the atribute count += 1? (how about performance)
- What's the atribute should I create on documents to achieve that?
TL;DR
The user wants to create a blog app and needs help with setting up the model to achieve certain requirements:
1. Display popular posts monthly, weekly, and daily.
2. Show a count of views for each post and update it when someone visits the post (considering performance).
The suggested solution is to use a function and set an attribute in the post document to track the number of views.- For this you need to achieve the point 2
- I would use a function to achieve that
- In the post document, I would have set an attribute with the number of views
Recommended threads
- Appwrite SSL Certificate Failure
Hello, I need help releasing a stuck domain. My Domain: adilnaib.engineer My Project ID: 68fe0aee001e999b5d71 Error: Failed to add domain to Fastly: {"msg":"B...
- [BUG] I'm facing an issue while creating...
Here’s what’s happening: When I try to create a new Web app on my Appwrite console (backend.keplr.in), the browser console shows multiple errors: Uncaught (in...
- Sites: Old deployment gets requests even...
Hi team, I use Sites to host a Next.js web app and it serves from old deployment for many hours. Is this expected? I thought it would serve from new deployment ...