Question

Is disabling sales_grid_order_shipment_async_insert, sales_grid_order_async_insert sales_grid_order_creditmemo_async_insert and sales_grid_order_invoice_async_insert advisable from the perspective of site's performance?

Was it helpful?

Solution

It depends on how is your store configured with regards to the asynchronous indexing of the grids. The configuration resides in Stores > Settings > Configuration > Advanced > Developer > Grid Settings > Asynchronous indexing. If it's disabled, then your crons won't process anything and by disabling them you won't gain any performance boost. As you can see below, the configuration is checked prior to processing:

public function asyncInsert()
{
    if ($this->globalConfig->getValue('dev/grid/async_indexing')) {
        $this->entityGrid->refreshBySchedule();
    }
}

However, this functionality is intended to actually help the performance of the checkout. Check this article which states that:

If the number of simultaneously placed orders in your store is large enough and has a negative impact on checkout performance, we recommend enabling asynchronous orders processing.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top