query chunking was too slow