MDLSITE-2598 added necessary number of records limit to fetching records