Log in
Model

Flat

Magento\Catalog\Model\ResourceModel\Product\Flat

What it does

This class manages database operations for Magento's flat catalog product table, which is an optimized denormalized table structure for faster product data retrieval.

Developers use this resource model when working with flat catalog indexing to improve product collection performance in stores with large catalogs.

It handles store-specific flat table names, attribute column mappings, and provides methods to interact with the flattened product data structure.

Public Methods

  • getStoreId()
  • setStoreId()
  • getFlatTableName()
  • getTypeId()
  • getAttributeForSelect()
  • getAttributeSortColumn()
  • getAllTableColumns()
  • isAttributeStatic()
  • getEntityIdField()
  • getAttribute()
  • getMainTable()
  • getDefaultAttributes()