#2486 Further optimization of orders dashboard widget query.