How to make R or Python as fast as SAS for ODBC Oracle queries?
I want to use R or Python to query big structured SQL-type data, but they are very slow compared to SAS.
I tried using R and Python to return a 1.3 million record Oracle ODBC passthrough query. The query took 8-15 seconds in SAS, 20-30 seconds in Python, and 50-70 seconds in R. Does anyone know why?
R Packages Used:
First I used the RODBC package in R to query to the Oracle database. Then I tried the ROracle package, but both packages were much slower than SAS.
Python Packages Used:
For Python, I used Oracle's cx_Oracle package for the query.
Thanks a lot, Sean