Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · Database Internals · One Database, to the Bolt · with code: Python · about 13 min to read

Play it as a journeyTutor comes with a plan

Make this Postgres fast: the fixes and the write-up

Everything
Everything · Open board

Every part of the database on one page. Each fix below touches one part of it: an index on the tree, a setting on the planner, a dropped index on the write path.

Before you start. Make this Postgres fast: the brief built the shop, the stopwatch and the list of what is slow. If you did its Try it, keep your written predictions: this lesson checks them. You need the same bench and teaching/code/database-internals/tuning.

Lesson 25 of 26 in Database Internals

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 5 December 2017: the usual suspect
  • Fix 1: index the foreign key
  • Fix 2: index the expression
  • Fix 3: tell the planner what its storage costs
  • Fix 4: ask once
  • Fix 5: the price of everything you added
  • The scorecard, before and after

Terms it explains: 0.03 ms, 3.7 to 4.5 ms.

Review Database Internals