Skip to content
StackPractices

Tag: mysql

Browse 9 practical software engineering resources tagged with "mysql". Discover code recipes, design patterns, documentation templates, and in-depth guides to help you build, deploy, and maintain production-ready solutions involving mysql.

Connect to MySQL

How to connect to MySQL databases in Python, JavaScript, and Java.

Database Connection Pooling

Configure and tune database connection pools to maximize throughput while preventing connection exhaustion.

Set Up Database Read Replicas for Scaling

Scale read-heavy workloads with database read replicas, replication lag monitoring, and read/write splitting across primary and replica instances.

Create and Use Database Views and Materialized Views

How to create and use database views and materialized views to simplify queries and improve read performance

Find and Remove Duplicate Rows in SQL

Detect duplicate records in SQL tables using GROUP BY and HAVING, then remove them safely while keeping the canonical row.

SQL Joins

Practical examples of INNER, LEFT, RIGHT, and FULL OUTER JOINs with real-world query patterns.

Database Failover Runbook

A step-by-step runbook for executing database failover procedures safely with minimal downtime and data loss.

Database Query Tuning Checklist

Checklist for systematic SQL query optimization: EXPLAIN plan analysis, index strategy, N+1 query detection, join optimization, pagination patterns, connection pooling, query caching, and slow query log triage with examples for PostgreSQL and MySQL.

Read Replicas: Scale Reads Without Changing Application

A practical guide to read replicas: setting up replication, routing read queries, handling replication lag, and scaling read-heavy workloads with PostgreSQL, MySQL, and cloud-managed replicas.