Loading mysql table into python takes a very long time compared to R

后端 未结 2 2096
太阳男子
太阳男子 2021-02-08 23:06

I have a fairly large mysql table, about 30M rows, 6 columns, about 2gb when loaded into memory.

I work with both python and R. In R, I can load the table into memory a

2条回答
  •  渐次进展
    2021-02-08 23:55

    There is also a pure C/C++ ultramysql MySQL driver which can be used with the umysqldb adapter. The projects are not active, but could be of use for a one-time thing - I would not be using them in production though.

    Since pymysql is a pure-Python driver, you may also try running it on PyPy.

提交回复
热议问题