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.
javascript
MongoDB 8.0+
Verified Starter
MongoDB 8.0+ setQuerySettings: Pin Index Hints Without Redeploy
Enforce persistent MongoDB 8.0+ indexHints, maxTimeMS, or reject runaway COLLSCAN query shapes cluster-wide via mongosh without redeploying.
// MongoDB 8.0+ Cluster-Wide Persistent Index Hints & Query Firewall (mongosh)
// Run in mongosh against your primary or mongos router — ZERO application redeploy required!
const targetDb = db.getSiblingDB('commerce_prod');
// 1. Pin a Specific...
javascript
MongoDB 8.0+
Verified Starter
MongoDB $indexStats Unused & Redundant Index Hunter (mongosh)
Scan all MongoDB collections via $indexStats to detect zero-read and left-prefix redundant indexes, generating safe hideIndex() commands.
// MongoDB Unused & Left-Prefix Redundant Index Auditor (mongosh 8.0+)
// Execute: mongosh "$MONGODB_URI" --quiet mongodb-index-hunter.js
const targetDbName = db.getName();
const minAgeDays = 7;
const cutoffMs = Date.now() - minAgeDays * 86400 *...
yaml
MongoDB 8.0+
Verified Starter
MongoDB 8.0 Production mongod.conf (WiredTiger & Zstd)
Production MongoDB 8.0 mongod.conf tuned for WiredTiger cache sizing, Zstandard block/journal compression, and workingMillis profiling.
# MongoDB 8.0+ Production Replica-Set Node Configuration (/etc/mongod.conf)
# Host sizing baseline: 32 GB RAM / 8 vCPU / XFS on NVMe SSD (Linux THP disabled)
storage:
dbPath: /var/lib/mongodb
wiredTiger:
engineConfig:
# Rule of thumb:...