1.MySQL
Databases · 38 notes
- 1. MySQLhistorical
A map of the MySQL notes: architecture, storage engines, indexing, transactions, replication, diagnostics, and performance work.
- 1.1 MySQL EXPLAINhistorical
A practical guide to reading MySQL execution plans: access type, chosen indexes, row estimates, join order, covering access, filesort, temporary work, and EXPLAIN ANALYZE.
- 1.2 MySQL Primary-Replica Replicationhistorical
MySQL binlog-based replication, relay logs, replication lag, parallel apply, semi-sync, GTID/position waiting, and stale-read trade-offs.
- 1.3 MySQL SQL Tuninghistorical
A measurement-first SQL tuning workflow covering slow-query identification, execution plans, indexing, query rewrites, pagination, and joins.
- Installing and Configuring MySQLhistorical
A version-aware checklist for installation, initialization, security, durability, memory, and observability.
- 1.5 MySQL Query Optimizerhistorical
Logical rewrites, cost-based physical planning, access paths, join ordering, statistics, optimizer trace, and execution-plan selection.
- MySQL Storage Engineshistorical
The storage-engine abstraction and why InnoDB is the normal transactional choice.
- 1.7 MySQL Lockshistorical
MySQL and InnoDB locking from global/metadata locks to record, gap, and next-key locks, plus how access paths determine lock scope.
- 1.8 MySQL Indexeshistorical
InnoDB primary and secondary B+ tree indexes, composite indexes, covering indexes, leftmost prefixes, selectivity, range scans, and index-design trade-offs.
- MySQL Index Implementationhistorical
B+tree organization, clustered and secondary indexes, page locality, and lookup complexity.
- MySQL Files and Durable Storagehistorical
How database files, redo/binlog, tablespaces, filesystem caches, and fsync interact.
- MySQL Data Typeshistorical
Choosing numeric, temporal, string, binary, JSON, and exact-value types from semantics and access patterns.
- 1.13 MySQL Binary Loghistorical
MySQL server-level change logging for replication and point-in-time recovery, including statement/row formats, durability policy, and its distinction from InnoDB redo.
- 1.14 MySQL Architecturehistorical
The path from a client connection through parsing, optimization, execution, and the storage-engine interface.
- MySQL Connections and Connectorshistorical
Client authentication, sessions, connection pools, limits, timeouts, and protocol lifecycle.
- MySQL Optimizer Statisticshistorical
Cardinality and distribution statistics used for cost-based query-plan selection.
- MySQL Table Access Methodshistorical
Full scans, index scans, range access, point lookup, ref access, and plan-dependent row retrieval.
- MySQL Slow Query Loghistorical
Capturing expensive statements for plan analysis and workload prioritization.
- MySQL SHOW PROFILEhistorical
Historical per-query profiling and modern alternatives for diagnosing query execution.
- MySQL System Databaseshistorical
Purpose of mysql, information_schema, performance_schema, and sys metadata/diagnostic schemas.
- MySQL SQL Parsinghistorical
Lexing, parsing, semantic resolution, and the boundary between parsing and optimization.
- MySQL Query Executorhistorical
Executing an optimizer-selected plan through iterators/operators and storage-engine row access.
- Diagnosing MySQL Production Problemshistorical
A symptom-first workflow for latency, CPU, I/O, locks, connections, replication, and query-plan regressions.
- MySQL Load Testinghistorical
Benchmarking database throughput, latency, concurrency, and saturation with realistic datasets and transactions.
- Managed Cloud MySQLhistorical
Operational trade-offs of managed MySQL: HA, backups, monitoring, scaling, limits, and provider-specific behavior.
- MySQL InnoDB Buffer Poolhistorical
Caching InnoDB data and index pages, dirty-page management, eviction, and working-set behavior.
- MySQL Performance Tuninghistorical
Evidence-driven tuning across schema, SQL, indexes, memory, concurrency, I/O, and architecture.
- Canal and MySQL Binlog CDChistorical
Capturing MySQL changes from the binary log for downstream synchronization and event pipelines.
- 1.29 InnoDB Buffer Poolhistorical
How InnoDB caches data and index pages, tracks free/dirty/cached pages, evicts cold pages, and decouples logical writes from data-file flushing.
- 1.30 InnoDB MVCChistorical
How InnoDB uses transaction IDs, undo-based row versions, and Read Views so readers can observe consistent historical versions without blocking writers.
- 1.31 InnoDB Redo Loghistorical
InnoDB write-ahead logging, redo buffering, fsync policy, group commit, crash recovery, and the relationship between redo log and binlog.
- 1.32 InnoDB Undo Loghistorical
How undo records support transaction rollback and MVCC version reconstruction, and why long transactions delay undo purge.
- 1.33 InnoDB Transactionshistorical
InnoDB transaction boundaries, ACID mechanisms, isolation levels, consistent reads, locking reads, MVCC, redo, and undo.
- InnoDB Tablespaceshistorical
Logical and physical storage of InnoDB pages across system, file-per-table, undo, and temporary tablespaces.
- InnoDB vs. MyISAM Indexeshistorical
How InnoDB clustered indexes differ from MyISAM's separate data and index storage.
- InnoDB Overviewhistorical
Transactional MySQL storage with clustered indexes, MVCC, redo/undo, locking, and buffer-pool caching.
- InnoDB Flushinghistorical
Writing dirty buffer-pool pages and redo state to durable storage under checkpoints and background pressure.