php-symfony-doctrine-batch-processing

Community

Batch-process large Doctrine datasets efficiently

AuthorLounisBou
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Processing large numbers of Doctrine entities in Symfony can exhaust memory and slow down apps. This skill provides a memory-efficient batching approach that processes items in chunks with periodic flush/clear.

Core Features & Use Cases

  • Iterative processing with toIterable() to avoid loading all results
  • Periodic EntityManager clear and flush to manage memory during long-running jobs
  • Flexible batching strategies (ID-based pagination, batch sizes, and DBAL for bulk updates)

Quick Start

Run a Symfony command that processes unprocessed Product entities in batches of 100, flushing and clearing memory periodically.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: php-symfony-doctrine-batch-processing
Download link: https://github.com/LounisBou/claude-code/archive/main.zip#php-symfony-doctrine-batch-processing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.