- Mastering PostgreSQL 12
- Hans Jürgen Sch?nig
- 265字
- 2021-08-20 10:00:20
Understanding new storage-related features
Let's now turn our attention to one of the biggest achievements (in my judgment) of the past 10 years in the PostgreSQL universe: pluggable storage engines. What is the general problem? For the past, roughly, 30 years, the PostgreSQL community has focused its attention and development efforts on one single storage engine, the heap. While a general-purpose storage engine performs well in many cases, some situations demand different approaches to storage. This is especially true if you are running analytics or high volumes of UPDATE statements changing millions or even billions of rows, given an OLTP workload.
So, what is the problem with a conventional row store? Suppose you are running analytics on a large table. Your table might consist of dozens of columns and you have got to read them all to retrieve just a handful of columns. Of course, this is inefficient. By storing data in a column-oriented way, you have only got to fetch the data you really needed. But there is more to this: the content of a column contains a lot more redundancy than a row. id, name, date is definitely less redundant than name, name, name.
In short, you can apply a lot more optimizations for certain workloads. However, this is not true for all kinds of applications. A classical row store is king if you are running classical OLTP operations or if you tend to need the entire row anyway.
The bottom line is: PostgreSQL 12 offers great opportunities for future developments and will lead the way for an explosion of storage engines.
- Visualforce Development Cookbook(Second Edition)
- 網(wǎng)上沖浪
- Photoshop CS4經(jīng)典380例
- MicroPython Projects
- 機(jī)艙監(jiān)測(cè)與主機(jī)遙控
- 四向穿梭式自動(dòng)化密集倉(cāng)儲(chǔ)系統(tǒng)的設(shè)計(jì)與控制
- 大數(shù)據(jù)時(shí)代
- Troubleshooting OpenVPN
- 步步圖解自動(dòng)化綜合技能
- 愛(ài)犯錯(cuò)的智能體
- 從零開(kāi)始學(xué)C++
- 基于神經(jīng)網(wǎng)絡(luò)的監(jiān)督和半監(jiān)督學(xué)習(xí)方法與遙感圖像智能解譯
- 基于RPA技術(shù)財(cái)務(wù)機(jī)器人的應(yīng)用與研究
- 未來(lái)學(xué)徒:讀懂人工智能飛馳時(shí)代
- Unreal Development Kit Game Design Cookbook