This article provides best practice for configuration settings that can help improve checkout performance in case of large number of simultaneously created orders.
Affected products and versions
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.
To enable the setting:
Method 1: Cloud and on-premises (if deploy mode is PRODUCTION - which is the default setting on Cloud as DEFAULT or DEVELOPER are not allowed): Run
php bin/magento config:set dev/grid/async_indexing 1.
Method 2: on-premises only (only when the deploy mode set to DEFAULT OR DEVELOPER): Enable the Asynchronous indexing option in Magento Admin under Stores > Settings > Configuration > Advanced > Developer > Grid Settings > Asynchronous indexing.
Then flush cache by running
php bin/magento cache:flush or go to Magento Admin under System > Tools > Cache Management.
Warning: always test in the Staging environment prior to making any changes to the Production environment.