query optimization for skill row display