S
Supanote
Sign in Sign up
Database, Cache & Warehouse

Database & SQL Configuration Templates

Production blueprints for PostgreSQL 18 io_uring & UUIDv7, MySQL 8.4 LTS, MariaDB 11.8 Vector Index, SQLite 3.50, MongoDB 8.0, Redis 8.0, Memcached 1.6, and BigQuery FinOps.

conf
Verified Starter

MySQL 8.0 InnoDB Production Performance Tuning Configuration

Hardened my.cnf parameters for InnoDB buffer pool size, redo log capacity, thread cache, and connection limits.

# MySQL 8.0 / Percona Server Production InnoDB Tuning
# /etc/mysql/mysql.conf.d/mysqld.cnf

[mysqld]
# Basic Network & Connection Settings
bind-address            = 127.0.0.1
max_connections         = 500
max_connect_errors      = 10000
wait_timeout ...
ini MySQL 8.4 LTS
Verified Starter

MySQL 8.4 LTS Production my.cnf (Redo Capacity & NVMe)

Modern MySQL 8.4 LTS and 9.x production my.cnf using dynamic innodb_redo_log_capacity, NVMe IOPS tuning, and parallel replica workers.

# MySQL 8.4 LTS / 9.x Production Configuration (32 GB RAM / 8 vCPU / NVMe SSD)
# Place at /etc/mysql/conf.d/99-production-84.cnf
# Clean of removed 8.0 flags (default_authentication_plugin, binlog_transaction_dependency_tracking)

[mysqld]
# 1....
sql MySQL 8.4 LTS
Verified Starter

Zero-Risk MySQL Index Cleanup (Invisible Index & EXPLAIN ANALYZE)

Drop unused or redundant MySQL indexes safely without downtime using sys schema audits, ALTER INDEX INVISIBLE, and EXPLAIN ANALYZE.

-- Zero-Risk MySQL 8.4 / 9.x Unused Index Cleanup Workflow
-- Avoids multi-hour index rebuilds if a seemingly unused index is needed by a monthly job

-- Step 1: List Unused & Redundant Indexes (Ensure server uptime >= 7 days)
SELECT
   ...
Notification