
Django: fixing a memory “leak” from Python 3.14’s incremental garbage collection
Adam Johnson explains how Python 3.14's new incremental garbage collection caused excessive memory growth during Django migrations, leading to out-of-memory errors on resource-constrained servers. He shares a practical workaround by explicitly triggering garbage collection after each migration step, and notes the issue helped support the planned revert to the prior GC behavior in Python ...
adamj.eu/tech/2026/04/2…
English