sovle n+1 queries problem for tips/orders pages