Database design for database-agnostic applications

后端 未结 17 1767
隐瞒了意图╮
隐瞒了意图╮ 2021-02-02 14:15

What do I have to consider in database design for a new application which should be able to support the most common relational database systems (SQL Server, MyS

17条回答
  •  悲&欢浪女
    2021-02-02 14:46

    IMO it depends on the type of app you are developing:

    1. An app that fulfils some other need which happens to involve storing data, e.g. commercial websites, line of business apps, even home/lifestyle apps.
    2. An app specifically designed to manipulate or administer databases, e.g. design tools, modelling tools, ETL tools.

    For case 1, just pick one DBMS that's best suited to your needs, and code against that, using the full power of all its proprietary features.

    For case 2, you will likely find that it is quite feasible to stick to the common subset of operations supported by all DBMSs that you intend to support.

提交回复
热议问题