use less memory in top children query