Every time an order is placed, Magento also writes a row to the admin order grid. By default that happens inside the same database transaction as the order itself. On stores with many orders, this extra write slows down “Place Order” and causes lock conflicts between shoppers checking out at the same time.
The fix: update the grid later
Asynchronous grid indexing moves the grid update to a cron job that runs every minute:
bin/magento config:set dev/grid/async_indexing 1
bin/magento cache:flush
You can also find it in the admin under Stores > Configuration > Advanced > Developer > Grid Settings. The Developer section is only visible in developer mode, so use the command in production.
Cron must be running
With this on, new orders appear in the admin grid when the cron job sales_grid_order_async_insert runs. If cron stops, new orders stop appearing in the admin, even though they are placed correctly. Check it’s working:
SELECT status, executed_at FROM cron_schedule
WHERE job_code = 'sales_grid_order_async_insert'
ORDER BY scheduled_at DESC LIMIT 5;
What changes for your team
New orders show up in the admin grid up to about a minute later. Nothing else changes.
Catch it automatically
MageMonitor checks for this every few minutes as part of its Magento health checks, and alerts you by email, Slack or webhook the moment it appears, with the exact commands to fix it. See MageMonitor for Magento 2.
