Loading topic
SELECT ... WHERE ... ORDER BY queries and know that an index speeds up lookups. You don't need to read EXPLAIN output fluently, but you should know how to run it. The chapter uses the orders and users tables from the running schema.6 min readEXPLAIN output and know that a B-tree index keeps entries in sorted order. It uses the orders table from the running schema. Here you will learn how a multicolumn B-tree index orders its entries, which conditions narrow the part of the index that is read, 7 min readEXPLAIN output and that you know how a multicolumn B-tree index is built and why its column order matters. It uses the orders and users tables from the running schema.5 min readEXPLAIN output. It uses the orders and users tables from the schema at the start of this tutorial.7 min readSELECT queries with WHERE and ORDER BY, and that you have already created a partial index. It builds on the earlier chapter on partial indexes. It covers why a correct partial index sometimes goes unused, and how to write queries that use it.6 min readEXPLAIN output and that you know what a UNIQUE constraint does. It also assumes you have met partial indexes, which are B-tree indexes with a WHERE clause. Here you combine the two to enforce uniqueness over only some rows of a table.6 min readEXPLAIN output and know how a B-tree index serves equality, range, and sort queries. It also assumes you have seen multicolumn and partial indexes in the earlier chapters. The examples use the orders and users tables from the running schema.6 min readCREATE INDEX syntax and have seen an expression index such as lower(email). It uses the orders and users tables from earlier chapters. You will learn what "immutable" means for a function, why PostgreSQL enforces it for index expressions, and how to fi6 min readEXPLAIN output and that you know how a multicolumn B-tree index is searched. It uses the orders and users tables from earlier chapters. The goal is to answer a query from the index alone, so PostgreSQL never has to visit the table.6 min readEXPLAIN output and have built the multicolumn, partial, and expression indexes from the earlier chapters. It uses the orders and users tables from the running schema. Every index you create speeds up some reads. It also adds work to every write, takes di7 min readEXPLAIN output and know what a B-tree index is. It uses the orders and users tables from earlier chapters. It covers how to add an index to a table that is serving traffic, what can go wrong, and how to recover.5 min readEXPLAIN output, know why column order matters in a B-tree, and have met the orders and users tables from earlier chapters. The goal is a repeatable way to p5 min read