Overview
Database connections are expensive. FluxCRUD uses SQLAlchemy’s connection pooling under the hood but exposes simple configuration options to tune it for high-concurrency workloads.Configuration
You can configure pooling viaFlux or Database init:
Best Practices
- Production: Always use a real pool (not
NullPool) for PostgreSQL/MySQL. - Serverless: If using AWS Lambda / Azure Functions, consider
NullPoolif you have an external proxy (like PGBouncer) or keeppool_sizesmall. - SQLite: File-based SQLite works best with
StaticPool(handled automatically for in-memory) or strictly serialized access. FluxCRUD handles safe defaults.

