阅读背景:

使用SQLAlchemy将记录更快地插入表中

来源:互联网 

I am parsing a log and inserting it into either MySQL or SQLite using SQLAlchemy and Python. Right now I open a connection to the DB, and as I loop over each line, I insert it after it is parsed (This is just one big table right now, not very experienced with SQL). I then close the connection when the loop is done. The summarized code is:I am parsing a log and inserting it into either




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: