Rebuilding sales_order_grid

  1. Go to Advanced - Developer - Grid Settings
  2. Set Asynchronous Indexing to "Enable"
  3. Flush cache
  4. Go to database table "sales_order_grid". You can truncate this table or remove only orders during some period where orders missing (from X day to current day).
  5. Make sure what cron is configured and works. (I don't like configure run cron on my local PC, so I run command while :; do sleep 60; ./bin/magento cron:run & done when I need cron and stop it when I don't need it any more)
  6. Please, wait for about 2-3 minutes...
  7. Done.