quit recursive query when total fetched record exceeds maxFetch