AMBARI-6268. step 6 pagination is slow (alexantonenko)