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
- No domain visible after creating functio...
Saw this in docs yet i have no domain (Pro): ``` Generated domains In the Appwrite Console's sidebar, click Functions. Under the Domains tab, you'll find the g...
- Free plan Usage
I using a free plan with one organization. I have three projects but on the free plan I should be able to have 2 projects running But in my case only 1 out of ...
- SPA Not working
So I'm using vite/react, which is spa, and it used to work before, but now whenever I go to any route except the root it shows appwrites 404 page, instead of us...