Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 1.99 KB

File metadata and controls

43 lines (25 loc) · 1.99 KB

Understanding database

1. Document vs Relational database(文档与关系型数据库)

文档型数据库

2. Column VS Row oriented database(列式与行式数据库)

  • Row

    • Row-oriented systems are designed to efficiently return data for an entire row, or record, in as few operations as possible.

    • row-oriented systems are not efficient at performing set-wide operations on the whole table, as opposed to a small number of specific records. For instance, in order to find all records in the example table with salaries between 40,000 and 50,000, the DBMS would have to fully scan through the entire table looking for matching records.

    • database indexes

Column

Faster when only a limited subset of data is retrieved.

3. Analytic database(分析型数据库)

4. Database for SAAS application (适用于多租户的数据库)

4.1 Old school - one database per tenant

4.3 New fasion