magento-hackathon / AsyncIndex

MIT License
78 stars 37 forks source link

Async reindex collidates with reindexing from Observers #17

Closed tomtone closed 1 year ago

tomtone commented 9 years ago

While running the async module indexes are rebuilt from cron. But e.g. sales_model_service_quote_submit_success Event forces the CatalogInventory to reindex Data as well. This colidates from time to time (depending on the amount of sales and interval for async indexing).

Magento Version where this Bug occurs: 1.9.0.1

Any suggestions ?

qx54 commented 9 years ago

What happens exactly to a sale when a collision happens? Is this a serious issue?

Silarn commented 8 years ago

This doesn't just happen with Update on Save selected?

WinstonN commented 8 years ago

I do multiple orders a second in my 1.8.1.0 CE store. I have my indexes running every 5 minutes, with 100 events in each run. I also commented out, via a rewrite, the Mage::getResourceSingleton('catalog/product_indexer_price')->reindexProductIds($productIds); call that get's called after each order in Mage_CatalogInventory_Model_Observer::reindexQuoteInventory()

Under System -> Config -> System -> Asynchronous Indexing -> Enable Partial Automatic Indexing = Yes

I never get any deadlocks now. My peaks are 9 orders a second with this configuration

Flyingmana commented 8 years ago

It may be worth to mention this in the readme with possible downsides