Tornado Documentation
http://v2ex.xtra.eu.org/tornado/
Tornado on GitHub
https://github.com/facebook/tornado/
Tornado Gists
http://tornadogists.org/
sujin190
V2EX  ›  Tornado

tornado 的 mysql 异步驱动性能测试

  •  
  •   sujin190 · Oct 8, 2015 · 7248 views
    This topic created in 3898 days ago, the information mentioned may be changed or developed.
    8 replies    2015-10-08 16:18:53 +08:00
    sivacohan
        1
    sivacohan  
    PRO
       Oct 8, 2015 via Android
    MySQL 用异步的时候要注意,开事务可能会出问题。
    yangtukun1412
        2
    yangtukun1412  
       Oct 8, 2015
    @sivacohan 能否详述?
    mouer
        3
    mouer  
       Oct 8, 2015
    @sivacohan 异步开事务没问题,如果有也是使用的问题
    sujin190
        4
    sujin190  
    OP
       Oct 8, 2015
    @sivacohan 事务本身也是开在一个连接中的,异步使用过程中也是一个事务只在一个连接在使用啊,没什么问题吧
    sivacohan
        5
    sivacohan  
    PRO
       Oct 8, 2015 via Android
    @yangtukun1412
    @mouer
    @sujin190
    MySQL client 里,一个事务用了两个连接。具体在哪我记不清了,看一下 insert 或者 update 那的实现吧。以前研究 MySQL 异步的时候发现的问题。
    sujin190
        6
    sujin190  
    OP
       Oct 8, 2015
    @sivacohan 标准实现里的? PyMySQL 没这么实现啊,都是一个事务一个连接的
    sivacohan
        7
    sivacohan  
    PRO
       Oct 8, 2015 via Android
    @sujin190 PyMySQL 是纯 Python 的。看 mysqldb
    sivacohan
        8
    sivacohan  
    PRO
       Oct 8, 2015 via Android
    @sujin190 用 C 实现的那个
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3121 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 12:29 · PVG 20:29 · LAX 05:29 · JFK 08:29
    ♥ Do have faith in what you're doing.