|A Deep Dive Into PostgreSQL Indexes|
|Written by Nikos Vaggalis|
|Friday, 10 September 2021|
If you are at all confused about which of PostgreSQL index to choose for a specific use case, there's a free course from Percona University designed to help you.
This free Percona University short course about the different kinds of indexes PostgreSQL supports. is available as a collection of videos on YouTube as well as on Google Classroom. It goes over the different types of indexes, when to use each and how to usethem optimally in order to squeeze performance out. The premise is that not all indexes are appropriate for all circumstances and using a ‘wrong’ index can have the opposite effect to that you intended.
PostgreSQL has the following types of indexes;the popular Hash and B-tree, and the more exotic ,GiST, SP-GiST, GIN and BRIN.
I'll give a rough overview of each type:
After a brief overview of what an index actually is, we are shown how to create Partial (index only part of table rows) and Expression (index on expression,not field) Indexes. The course then moves on to tackle the various kinds.
The real value lies with lessons 10,11,12 and 13,where you get to learn in which scenarios each type is appropriate, how to avoid table scans for index only scans and how to keep your house clean by finding duplicate and unused indexes.
In detail the syllabus is :
Lesson 1: Overview
Upon completion you can file for a Certificate of Completion after you pass a quiz consisting of 23 multiple choice questions, which requires you to get a minimum of 17 answers correct.
The videos themselves are 2 to 5 mins long; so grab a coffee and in about 45 minutes you'll have a good overview of the concept of indexes and their use while, of course, not becoming an expert. The videos are scattered around Percona's YouTube channel and while they can be found in the comments of each video for the next one, it's best to attend the Classroom which links to them in lesson order.
In the end, even if you are not interested in the exotic type of indexes, you'll still get encyclopedic value out of this course due to its quick and uncomplicated look on the basics.
Summer SALE Kindle 9.99 Paperback $10 off!!
or email your comment to: email@example.com
|Last Updated ( Friday, 10 September 2021 )|