Interesting data model problems #2 - querying journal/transactional data

In these series of articles, I write about modelling problems that result in underestimates. You may also be interested in this post:

Consider the following Facebook news feed:

The feed represents a list of journal/transactional data stored against your database of some kind (it could be SQL, NoSQL or even just a bunch of files). I call this transactional data because it represents a data where there is a lot of activity. It is also loosely a journal, because data is usually added to the system, rather than being updated or deleted.

When estimating the effort of querying the data and rendering it on screen, we often forget that the user may also add new items to the list. In the instance above, the user is prompted to post "what's on your mind?". After posting a new item, this item should appear in the feed so that the user knows their action succeeded. However, frequently, the estimate only covers the query scenario, and not the refresh scenario.

Questions to ask:

  • When user adds a new post, do we need to re-query the list? In particular, SPA applications may have decomposed the UI elements of new posts and list of posts into separate concerns and they will need to be wired up.
  • Does the list represent a live query, when new data appears on the server, we need to notify the user to refresh or update their list?


要查看或添加评论,请登录

Chui Tey的更多文章

  • The PolyNetwork $600m hack.

    The PolyNetwork $600m hack.

    Kelvin explains it below, but here's a summary for my future reference. Source: https://twitter.

  • Bots, lies and Hoaxy

    Bots, lies and Hoaxy

    This write up is purely for the students of how information / disinformation is propagated. The notion of bots…

  • Interesting data model problems #1 - temporal reference data

    Interesting data model problems #1 - temporal reference data

    I want to write about a common problem, but we often think it as a one-off issue when we encounter it in consulting. I…

  • Getting out of the poverty trap

    Getting out of the poverty trap

    The New York Times has an article (paywalled) about the value of social signalling in giving poor people the initiative…

  • 457 visas and a country of makers

    457 visas and a country of makers

    I want to chime in on the debate over the abolition of 457 visas in Australia. The issue surrounding 457s is a hard…

  • The Fateful Pull request

    The Fateful Pull request

    Your colleague has created the following code change and requested you review and approve it. Would you have looked a…

  • P-Invoke on OS X with PowerShell

    P-Invoke on OS X with PowerShell

    This is probably of interest to a very small section of the programming community. I wanted to learn a little bit about…

  • I tried out dokku today and this is what I learnt

    I tried out dokku today and this is what I learnt

    What does dokku do? If you have a dokku service running on your VM, you can "git push" to the server and dokku will run…

  • The mainstreaming of exploratory programming

    The mainstreaming of exploratory programming

    Can we apply technology to improve technology itself? Chas Emerick writes of a conversation with Prof Sussman of MIT…

    4 条评论
  • Recognising technological transitions

    Recognising technological transitions

    When there are technical shifts like the picture above, the game is not to find a faster horse, or a better jockey…

社区洞察

其他会员也浏览了