Magento2 Indexer ATTRIBUTES_CHUNK_SIZE
-
07-10-2020 - |
Question
In Magento\Catalog\Model\Indexer\Product\Flat\Action\Indexer there is one constant:
/**
* Maximum size of attributes chunk
*/
const ATTRIBUTES_CHUNK_SIZE = 59;
It serves for splitting attributes into chunks during Flat table indexation process.
The question is: Why 59?
Solution
Mysql has a limit of 63 joins per query. The 4 remaining are reserved for things like website and category associations.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange