maintain history in a database

后端 未结 5 1858
余生分开走
余生分开走 2020-12-15 00:37

I am designing this database that must maintain a history of employee salary and the movements within the organization. Basically, my design has 3 tables (I mean, there more

5条回答
  •  一个人的身影
    2020-12-15 01:28

    I think this belongs in the database for two reasons.

    First, middle tiers come and go, but databases are forever. This year Java EJBs, next year .NET, the year after that something else. The data remains, in my experience.

    Second, if the database is shared at all it should not have to rely on every application that uses it to know how to maintain its data integrity. I would consider this an example of encapsulation of the database. Why force knowledge and maintenance of the history on every client?

提交回复
热议问题