Show list query optimization