Model
CollectionByPagesIterator
Magento\ImportExport\Model\ResourceModel\CollectionByPagesIterator
What it does
This class provides a memory-efficient way to iterate through large Magento collections by loading and processing items in smaller pages (batches).
Developers use it when working with large datasets during import/export operations to avoid memory exhaustion, applying callback functions to each item without loading the entire collection into memory at once.
Public Methods
- iterate()