optimize get data by page