Setting the fetch size of the JDBC ResultSet to be the same as the R side

Setting the fetch size on the ResultSet object increase performance by requesting a batch number of rows from the database instead of returning rows individually depending on what database you're using. Using RJDBC with Hiveserver2 saw huge performance increase by setting this value prior to iterating over the ResultSet.