PostgreSQL Query Optimization: The Ultimate Guide to Building Efficient Queries 2nd
暫譯: PostgreSQL 查詢優化:高效查詢構建的終極指南(第二版)

Dombrovskaya, Henrietta, Novikov, Boris, Bailliekova, Anna

  • 出版商: Apress
  • 出版日期: 2024-01-09
  • 定價: $1,800
  • 售價: 9.5$1,710
  • 語言: 英文
  • 頁數: 344
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 9798868800689
  • ISBN-13: 9798868800689
  • 相關分類: PostgreSQLSQL
  • 立即出貨 (庫存=1)

相關主題

商品描述

Write optimized queries. This book helps you write queries that perform fast and deliver results on time. You will learn that query optimization is not a dark art practiced by a small, secretive cabal of sorcerers. Any motivated professional can learn to write efficient queries from the get-go and capably optimize existing queries. You will learn to look at the process of writing a query from the database engine's point of view, and know how to think like the database optimizer.

The book begins with a discussion of what a performant system is and progresses to measuring performance and setting performance goals. It introduces different classes of queries and optimization techniques suitable to each, such as the use of indexes and specific join algorithms. You will learn to read and understand query execution plans along with techniques for influencing those plans for better performance. The book also covers advanced topics such as the use of functions and procedures, dynamic SQL, and generated queries. All of these techniques are then used together to produce performant applications, avoiding the pitfalls of object-relational mappers.

This second edition includes new examples using Postgres 15 and the newest version of the PostgresAir database. It includes additional details and clarifications about advanced topics, and covers configuration parameters in greater depth. Finally, it makes use of advancements in NORM, using automatically generated functions.

 

What You Will Learn

  • Identify optimization goals in OLTP and OLAP systems
  • Read and understand PostgreSQL execution plans
  • Distinguish between short queries and long queries
  • Choose the right optimization technique for each query type
  • Identify indexes that will improve query performance
  • Optimize full table scans
  • Avoid the pitfalls of object-relational mapping systems
  • Optimize the entire application rather than just database queries

 

Who This Book Is For
IT professionals working in PostgreSQL who want to develop performant and scalable applications, anyone whose job title contains the words "database developer" or "database administrator" or who is a backend developer charged with programming database calls, and system architects involved in the overall design of application systems running against a PostgreSQL database

商品描述(中文翻譯)

撰寫優化查詢。本書幫助您撰寫快速執行且能準時交付結果的查詢。您將學到查詢優化並不是由一小群神秘的術士所操控的黑暗藝術。任何有動力的專業人士都可以從一開始就學會撰寫高效的查詢,並能夠優化現有的查詢。您將學會從資料庫引擎的角度來看待撰寫查詢的過程,並知道如何像資料庫優化器一樣思考。

本書首先討論什麼是高效能系統,然後進一步測量性能並設定性能目標。它介紹了不同類型的查詢及適合每種查詢的優化技術,例如使用索引和特定的聯接演算法。您將學會閱讀和理解查詢執行計劃,以及影響這些計劃以獲得更好性能的技術。本書還涵蓋了進階主題,如函數和程序的使用、動態 SQL 和生成的查詢。所有這些技術將一起使用,以產生高效能的應用程式,避免物件關聯映射器的陷阱。

本書第二版包含使用 Postgres 15 和最新版本的 PostgresAir 資料庫的新範例。它提供了有關進階主題的更多細節和澄清,並更深入地涵蓋了配置參數。最後,它利用 NORM 的進展,使用自動生成的函數。

您將學到的內容:

- 確定 OLTP 和 OLAP 系統中的優化目標
- 閱讀和理解 PostgreSQL 執行計劃
- 區分短查詢和長查詢
- 為每種查詢類型選擇合適的優化技術
- 確定能改善查詢性能的索引
- 優化全表掃描
- 避免物件關聯映射系統的陷阱
- 優化整個應用程式,而不僅僅是資料庫查詢

本書適合對象:
在 PostgreSQL 工作的 IT 專業人士,想要開發高效能和可擴展應用程式的任何人,職稱中包含「資料庫開發者」或「資料庫管理員」的人,或是負責編寫資料庫調用的後端開發者,以及參與整體設計的系統架構師,這些應用系統運行於 PostgreSQL 資料庫上。

作者簡介

Henrietta Dombrovskaya is a database researcher and developer with over 40 years of academic and industrial experience. She holds a PhD in Computer Science from the University of Saint Petersburg, Russia. At present, she is a Database Architect at DRW Holdings, Chicago, Illinois. She is an active member of the PostgreSQL community, a frequent speaker at the PostgreSQL conference, and the local organizer of the Chicago PostgreSQL User Group. Her research interests are tightly coupled with practice and are focused on developing efficient interactions between applications and databases.

 

Boris Novikov's experience includes leading post-graduate research groups and advising dozens of PhD students, while partnering and collaborating with industrial clients. His research interests are in the broad area of information management and include design, development, and tuning of databases, applications, and database management systems (DBMSs). He also has interests in distributed scalable systems for stream processing and analytics..

Anna Bailliekova is Senior Data Engineer at UrbanFootprint, where she works on data platform tools and cloud ops for geospatial applications. Previously, she worked in data engineering at Zendesk, and held a variety of DBA and BI roles at Epic. Her writing can be found in the newsletter Better Streets MKE. She received her undergraduate degree with College Honors in Political Science and Computer Science from Knox College in Galesburg, Illinois.

 

作者簡介(中文翻譯)

亨麗葉塔·多姆布羅夫斯卡亞是一位擁有超過40年學術和工業經驗的資料庫研究員和開發者。她擁有俄羅斯聖彼得堡大學的計算機科學博士學位。目前,她是位於伊利諾伊州芝加哥的DRW Holdings的資料庫架構師。她是PostgreSQL社群的活躍成員,經常在PostgreSQL會議上發表演講,並擔任芝加哥PostgreSQL使用者小組的地方組織者。她的研究興趣與實踐緊密相關,專注於開發應用程式與資料庫之間的高效互動。

鮑里斯·諾維科夫的經驗包括領導研究生研究小組並指導數十名博士生,同時與工業客戶合作。他的研究興趣涵蓋資訊管理的廣泛領域,包括資料庫、應用程式和資料庫管理系統(DBMS)的設計、開發和調整。他還對用於流處理和分析的分散式可擴展系統感興趣。

安娜·貝利科娃是UrbanFootprint的資深數據工程師,負責地理空間應用的數據平台工具和雲端運營。之前,她在Zendesk從事數據工程工作,並在Epic擔任多種DBA和BI角色。她的文章可以在通訊《Better Streets MKE》中找到。她在伊利諾伊州蓋爾斯堡的諾克斯學院獲得政治科學和計算機科學的榮譽學士學位。