Back

Create Blog app

  • 0
  • Databases
  • Web
bluesky
16 Dec, 2023, 03:48

I have plan to create blog app with design attached. Any suggestion about model to achieve this requirement:

  1. Popular post monthly, weekly, daily.
  2. How to display views count, should if anyone visit or hit database, the atribute count += 1? (how about performance)
  3. 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
16 Dec, 2023, 11:24
  1. For this you need to achieve the point 2
  2. I would use a function to achieve that
  3. In the post document, I would have set an attribute with the number of views
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more