官术网_书友最值得收藏!

PostgreSQL applications

PostgreSQL can be used with a variety of applications. The main PostgreSQL application domains can be classified into two categories:

  • Online transactional processing (OLTP): OLTP is characterized by a large amount of insert , update, and delete operations, very fast processing of operations, and the maintaining of data integrity in a multi-access environment. Performance is measured in the number of transactions per second.
  • Online analytical processing (OLAP): OLAP is characterized by a small amount of requests, complex queries which involve data aggregation, huge amounts of data from different sources and with different formats, data mining, and historical data analysis.

OLTP is used to model business operations such as customer relationship management (CRM). For example, the car web portal example in Chapter 01, Relational Databases, is an example of an OLTP application. OLAP applications are used for business intelligence, decision support, reporting, and planning. An OLTP database size is relatively small as compared to an OLAP database. OLTP normally follows relational model concepts, such as normalization, when designing the database, while OLAP has less relation; the schema often has the shape of a star or a snowflake. Finally, the data is denormalized.

In the car web portal example, we could have another database to store and maintain all the sellers and users historical data to analyze user preferences and seller activities. This database is an example of an OLAP application.

Unlike OLTP, OLAP's main operation is data analysis and retrieval. OLAP data is often generated by a process called ETL (extract, transform, and load) processes. ETL is used to load data in to the OLAP database from different data sources and different formats. PostgreSQL can be used out of the box for OLTP applications. For OLAP, there are many extensions and tools to support it such as foreign data wrappers (FDW), table partitioning, and recently, parallel query execution.

主站蜘蛛池模板: 泰顺县| 谢通门县| 大同市| 海林市| 潼关县| 兴化市| 济阳县| 广州市| 涟源市| 子洲县| 桃园县| 武邑县| 武邑县| 西丰县| 南宫市| 南宫市| 镇原县| 大英县| 崇州市| 万盛区| 阿克苏市| 乐都县| 广南县| 航空| 铜陵市| 芮城县| 苗栗县| 色达县| 泰宁县| 高尔夫| 犍为县| 东乌珠穆沁旗| 开原市| 凭祥市| 精河县| 泰和县| 泽普县| 婺源县| 安图县| 南江县| 芷江|