Deferred Writes: Performance Optimization and Database Gotchas

A look behind the scenes of implementing deferred writes in the CodeIgniter 4 Settings package: how batching write operations improves performance, and the subtle database portability issue caused by NULL values in unique constraints.

November 30, 2025 · 7 min

Building a Production-Ready File Handler for CodeIgniter 4 Settings

While CodeIgniter 4 Settings includes a database-backed handler, I wanted a file-based option that’s lightweight, fast, and safe for production use. I’ll walk through the challenges of handling concurrency, file locking, and caching, and explain the design choices behind the new FileHandler.

October 29, 2025 · 7 min