page query optimizations