PathwayAI
PathwayAI
Masuk

Kursus

Database Indexing and Query Performance in Production

Rp 99.000

Baru di sini? Buat akun gratis

Tentang kursus ini

After this course you can choose which columns deserve an index using cardinality and query patterns, read MySQL and PostgreSQL EXPLAIN output (including the four PostgreSQL scan types), build indexes on busy tables safely with CREATE INDEX CONCURRENTLY or an online schema-change tool, find missing and unused indexes with the built-in statistics views, and run a weekly and monthly index health routine. You practise on throwaway Docker databases, including a 10 million row PostgreSQL table.

Yang akan Anda pelajari

Start here: the 3 AM page

  • The 3 AM page
  • Course map (interactive)
  • Diagram: Start here: the 3 AM page
  • Course map, free docs and credentials
  • Pre-check: Database Indexing and Query Performance in Production

Concepts

  • Diagram: Concepts
  • What an index is and what this course covers
  • Index types in MySQL
  • Full-text indexes and cardinality
  • How B-Tree indexes work and what they cost
  • Index mistakes and changing indexes on busy tables
  • MySQL examples to run: EXPLAIN, composite index, slow log
  • PostgreSQL indexes and locking during creation
  • Unique indexes and reading EXPLAIN in PostgreSQL
  • Index-only scans and bitmap scans
  • MySQL and PostgreSQL plans side by side, and PostgreSQL examples
  • Checkpoint: concepts

The runbook

  • Diagram: The runbook
  • Creating and analysing indexes in MySQL
  • Monitoring and maintaining MySQL indexes
  • Creating and analysing indexes in PostgreSQL
  • Monitoring and maintaining PostgreSQL indexes
  • Index naming, covering indexes, dropping, and troubleshooting
  • Checkpoint: runbook

Workshop

  • Diagram: Workshop
  • Workshop setup: MySQL in Docker and a first database
  • Load sample data and query without an index
  • Add the index and run EXPLAIN again
  • Compare results, then build a composite index
  • Clean up MySQL, then start PostgreSQL
  • Build 10 million rows and query without an index
  • Add an index and see which scan PostgreSQL picks
  • Verify indexes, a composite index, and PostgreSQL cleanup
  • What to take from the workshop
  • Where to go after the workshop

The business view

  • Diagram: The business view
  • What faster queries are worth: the cost side
  • Operations, speed and risk
  • Data integrity, compliance and customers
  • A phased rollout and who cares about what
  • Benchmarks and the product view
  • Common objections to indexing
  • Checkpoint: business view

Summary and incident drill

  • Diagram: Summary and incident drill
  • What this suite claims to cover
  • Business file, cloud services and claimed impact
  • Incident drill