ReinDBby Bandlei

Database tuning guide for PostgreSQL, MySQL, SQL Server and Oracle

Brett Rosenblatt · version 1.3 · free · PDF

A field guide to making relational databases fast and keeping them that way: from the first look at a slow system, through the evidence, the fixes and the settings, to the baselines and monitoring that stop the same problem coming back. Read it here, chapter by chapter, or download the PDF.

Contents

About this guide

This is a field guide to making relational databases fast and keeping them that way. It follows the path a working DBA takes: from the first look at a slow system, through the evidence, the fixes and the settings, to the monitoring that stops the same problem from coming back.

Who it's for

DBAs, performance engineers, data architects, and developers who own database code. It assumes you can read SQL and an execution plan. It does not assume you know all four engines.

What it covers

PostgreSQL, MySQL, Microsoft SQL Server and Oracle Database, self-managed or as managed cloud services. The main text is engine-neutral: it explains each method in terms that apply to any relational database. Engine differences sit in labeled notes and comparison tables, so you can read straight through, or jump to the notes for the engine you run.

PartChaptersWhat you get
Strategy1 to 5How to start, the toolkit and what changes on managed cloud services, the data profile, platform choices, and what to look at first
Hands-on tuning6 to 11The statement tuning procedure, joins and predicates, indexing, procedure code, materialized views and partitioning, settings
Staying fast12 to 13Baselines and ongoing observability, including Grafana and alerting
ReinDB14How ReinDB fits each step, and how to put it to work
ReferenceAppendicesChecklists, version notes, glossary and sources

Conventions

  • Versions are noted in parentheses where a feature depends on them, for example (PostgreSQL 13+) or (Oracle 12c+). Appendix B collects the differences that matter most, including Oracle 11g against 19c.
  • Examples use a small, familiar schema: customers, orders and order items. They are illustrations, not drop-in scripts. Test every change outside production first, with production-like data.
  • Oracle licensing. The Oracle path in this guide uses V$ views and free tools only. Features that need the Diagnostics Pack or the Tuning Pack are marked wherever they come up. Confirm against Oracle's licensing documentation for your release and edition.
  • Engine notes. Slate boxes labeled ORACLE, SQL SERVER, POSTGRESQL or MYSQL hold the syntax, views, settings and version details for one engine; ENGINE NOTES boxes cover several at once. Tables with a slate header compare the engines side by side.
  • Cloud notes. Teal boxes cover managed services such as Amazon RDS and Aurora, Azure SQL, Google Cloud SQL and Oracle's own cloud services. Section 2.6 sums up what changes in the cloud.
  • Other callouts. Green boxes show where ReinDB helps. Amber boxes are warnings and common traps. Grey boxes are side notes.

Trademarks

Oracle and MySQL are registered trademarks of Oracle and/or its affiliates. Microsoft and SQL Server are trademarks of the Microsoft group of companies. PostgreSQL is a registered trademark of the PostgreSQL Community Association. Other names may be trademarks of their respective owners. ReinDB is a trademark of Bandlei, Inc.

© 2026 Bandlei, Inc., Evergreen, Colorado.