check the size of result before send and fetch