I'm developing an app, and I have a list of posts for which I would like to collect how many views that each post got. My first idea was to update each item every time it was viewed but if I were to view a few at once I might lose data. My second idea was to create a separate chart and to add to it each time a post is viewed, but this wouldn't have efficient time and space complexity. Does anyone have any other ideas?
Aucun commentaire:
Enregistrer un commentaire