This PR improves the performance of fetchall and fetchmany by iterating on the result set rather than iterating over the cursor's iterator. The following,
resulted in an execution time of 6.698s and 0.331s for the current and proposed solutions respectively, i.e., the proposed solution is about 20x faster.
This PR improves the performance of
fetchall
andfetchmany
by iterating on the result set rather than iterating over the cursor's iterator. The following,resulted in an execution time of 6.698s and 0.331s for the current and proposed solutions respectively, i.e., the proposed solution is about 20x faster.
to: @betodealmeida @mistercrunch