'What is the difference between reindexall() vs reindexeverything() in magento?
I would like to know what the difference is between reindexAll() and reindexEverything() in Magento indexer?
Solution 1:[1]
reindexEverything() appears to check and use depends prior to moving on to reindexAll()
Solution 2:[2]
As per the comments in Magento 1.9...
/**
* Reindex all data what this process responsible is
* Check and using depends processes
*
* @return $this
*/
public function reindexEverything()
{
and
/**
* Rebuild all index data
*/
public function reindexAll()
{
$this->_getResource()->reindexAll();
}
But you'll only use reindexall or reindexallrequired when running php shell/indexer.php, as follows:
$ php shell/indexer.php --help
Usage: php -f indexer.php -- [options]
--status <indexer> Show Indexer(s) Status
--mode <indexer> Show Indexer(s) Index Mode
--mode-realtime <indexer> Set index mode type "Update on Save"
--mode-manual <indexer> Set index mode type "Manual Update"
--reindex <indexer> Reindex Data
info Show allowed indexers
reindexall Reindex Data by all indexers
reindexallrequired Reindex Data only if required by all indexers
help This help
<indexer> Comma separated indexer codes or value "all" for all indexers
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | scrowler |
| Solution 2 | Ricardo Martins |
