推荐学习书目
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
746970179
V2EX  ›  Python

pycharm 中, 使用 ssh, socks 代理连接数据库后, 执行成功要比 tableplus 慢 1s

  •  
  •   746970179 · Aug 7, 2024 · 2591 views
    This topic created in 665 days ago, the information mentioned may be changed or developed.
    如题
    pycharm, ssh 链接远程数据库, 配置了本地 socks 1080 代理
    console 里, 显示 0.3s(执行+fetch), 但是最后展示的时候, 要 1.3s

    mysql 是 8.0.34, 驱动是 jdbc 8.2
    我尝试更换 Amazon Aurora Mysql 驱动, 能快一点, 1.1s 左右

    但是我使用 tableplus 的时候, 能 0.3s 就显示数据啊
    yinmin
        1
    yinmin  
       Aug 9, 2024 via iPhone
    启用压缩,cursor.fetchall()或者 fetchmany() 一次获取多条记录
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4637 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 04:06 · PVG 12:06 · LAX 21:06 · JFK 00:06
    ♥ Do have faith in what you're doing.