bluesky
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. D5
- 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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...