Log in
Model

Source

Magento\Customer\Model\Indexer\Source

What it does

This class serves as a data source provider for the customer_grid indexer in Magento 2.

It generates batches of customer data for indexing operations, iterating through customers in configurable batch sizes (default 10,000) to efficiently handle large customer datasets without memory issues.

Developers use this when working with customer grid indexing or need to process large volumes of customer data in batches.

Public Methods

  • getMainTable()
  • getIdFieldName()
  • addFieldToSelect()
  • getSelect()
  • addFieldToFilter()
  • count()
  • getIterator()
  • joinAttribute()