Catalog / Skills

Django QuerySet Batch Processing

Process large Django querysets and write-heavy jobs with memory-safe reads, values/values_list, iterator chunking, set-based update/delete, bulk_create, bulk_update, F expressions, Func expressions, and batch sizing. Use when a Django command, task, migration, report, or loop reads or writes many rows and is slow, memory-heavy, or query-heavy.

Djangov0.1.0MITdjangoquerysetsbatch-processingormperformance

Install

npx skills add LVTD-LLC/skills --skill django-queryset-batch-processing

From `SKILL.md`

Use this skill when Django code processes many rows. The goal is to avoid loading unnecessary model instances, avoid queryset result-cache blowups, and move writes into set-based database operations when behavior allows.