title: Designing creative databases and maintaining efficiency
body: <p>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?  For example the field viewed in the image, how to save it and how to calculate the view efficiently?<a href="https://i.stack.imgur.com/PAU9o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PAU9o.png" alt="enter image description here" /></a></p>