
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
- 2 Columns still processing since yesterd...
Hey o/ Yesterday (around <t:1758045600:f>), I created a database and added several columns to it. After about 15 minutes, most of the "processing" tags disappe...
- 503 Timeout when Updating or Upserting D...
Hey I’m running into an issue when trying to update or upsert a row in Appwrite. The request hangs for a while and then throws this error: ``` AppwriteException...
- Row with the requested ID already exists...
I’m hitting a blocking issue creating rows in Appwrite (both from the console and my React Native app). After successfully inserting the first row, every subseq...
