Database11 recipes

Database connection, tuning or schema configs

mlflowYAMLintermediate
MLflow Tracking Server with PostgreSQL and S3 Artifact Store

Deploy a production MLflow tracking server backed by PostgreSQL for run metadata and S3 for artifacts. Includes docker-compose setup, basic auth proxy and Python client configuration.

hapi-fhirYAMLadvanced
HAPI FHIR Server application.yaml with PostgreSQL and SMART Auth

Complete HAPI FHIR server application.yaml: PostgreSQL JPA persistence, SMART-on-FHIR OAuth2 interceptor, subscription support, binary storage and audit logging - HIPAA-aware baseline.

hashicorp-boundaryHCLintermediate
Escaping Passwords in HashiCorp Boundary Configuration

Learn how to properly escape passwords in your HashiCorp Boundary setup without modifying environment variables.

mysqlSQLbeginner
Resetting AUTO_INCREMENT in MySQL

Learn how to reset the AUTO_INCREMENT value of a MySQL table field to start from 1, allowing for fresh data insertion.

pgbouncerMARKDOWNintermediate
Understanding PgBouncer Pooling Modes: Transaction vs Session

This article explores the differences between transaction pooling and session pooling in PgBouncer, highlighting their advantages and use cases.

influxdbSQLbeginner
Deleting Data in InfluxDB: Common Pitfalls and Solutions

Learn how to properly delete data from InfluxDB and understand the limitations of delete queries.

mongodbBashbeginner
How to List All Collections in MongoDB

Learn how to easily retrieve a list of all collections in your current MongoDB database using various commands.

planetscaleINIbeginner
Troubleshooting Laravel Connection Issues with PlanetScale

This guide addresses common connection problems between Laravel and PlanetScale, particularly the SQLSTATE[HY000] [2002] error.

fastapiPythonintermediate
FastAPI Production App Factory with Async SQLAlchemy

A production-ready FastAPI application using the app factory pattern, async SQLAlchemy 2.0 with PostgreSQL, Alembic migrations, structured logging, and health-check endpoint.

postgresqlINIadvanced
PostgreSQL Performance Tuning - postgresql.conf

Tuned postgresql.conf settings for a dedicated 8-core / 32 GB RAM database server. Covers shared buffers, WAL, autovacuum, parallel query and connection settings - with explanations for each knob.

dockerYAMLbeginner
Local Dev docker-compose with PostgreSQL and Redis

A docker-compose.yml for local development that spins up the app, PostgreSQL 16, Redis 7 and an optional Adminer instance - volumes ensure data survives container restarts.