Software Engineering Radio - the podcast for professional software developers cover image

Software Engineering Radio - the podcast for professional software developers

SE Radio 583: Lukas Fittl on Postgres Performance

Sep 28, 2023
Lukas Fittl, performance expert of Postgres, discusses database indexing, queries, maintenance, scaling, and stored procedures. They cover the importance of indexing, improving query performance with indexes, vacuuming and database maintenance, and upcoming releases and performance features in Postgres.
01:11:24

Episode guests

Podcast summary created with Snipd AI

Quick takeaways

  • Efficient indexing is crucial for optimizing query performance in Postgres.
  • JSON B in Postgres allows for efficient storage and querying of large JSON documents.

Deep dives

Postgres: A Versatile Relational Database System

Postgres is a popular and versatile open-source relational database system that has been in development for over 30 years. It excels at serving as a system of record for applications and is extensible to support various data types, such as geospatial and vector data. Postgres can be used as both an OLTP and OLAP database, providing the flexibility needed for different workloads. It has been adopted by cloud providers like AWS, offering managed services like RDS and Aurora. Database performance is crucial for web applications as it directly impacts user experience and scalability. Slower queries can result in slow page load times, ultimately affecting end-user performance. SQL in Postgres is a declarative language, allowing you to specify what data you want without having to specify how to retrieve it. The performance of your queries is highly dependent on efficient indexing. B-Tree is the default index type in Postgres, suitable for most use cases. Other index types like GIN, GiST, and Hash indexes are available for specific data and query requirements. Expression indexes are useful when you need to index an expression result. PG Analyze offers an index advisor feature to help developers identify the right indexes to improve query performance by analyzing the query workload.

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner