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
- Bandwidth limit for your organization ha...
I received an alert that I exceeded the Free plan bandwidth limit (showing 5.86 GB), but my dashboard tells a different story. The usage stats there are much lo...
- Deploying to Sites will not work. NextJS
It’s been many times I have attempted to deploy to Appwrite and it’s always failed. The deployment itself works, the logs show it works perfectly, however when ...
- custom domain on cloudflair was verified...
I've added the credentials as instructed by the appwrite documentation, with cname set to dns only without proxy, and it successfully validated my domain, and w...