the impact of looping forever is very large- would really recommend a maximum number of retries, a smaller result set is preferable to a 500.