V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
sylvos
V2EX  ›  Python

用 pandas 操作 mysql 读写效率高吗

  •  
  •   sylvos · 2016-10-17 21:27:53 +08:00 via iPhone · 3762 次点击
    这是一个创建于 2737 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我想借用 pandas 的 read_sql 和 to_sql 操作 mysql 数据库,这种方法可行吗,还是用其他方式更好,请指导
    2 条回复    2016-10-18 02:00:41 +08:00
    neoblackcap
        1
    neoblackcap  
       2016-10-17 21:46:21 +08:00
    20-30 万的数据量,读还是很快的,写我就不知道了
    ksupertu
        2
    ksupertu  
       2016-10-18 02:00:41 +08:00 via iPhone
    没调优用它的 chunk 写入大概 2000 条每秒,这是我的经验锅应该在 mysql 调优上,个人感觉
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3357 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 12:40 · PVG 20:40 · LAX 05:40 · JFK 08:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.