V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
hunliji
V2EX  ›  问与答

阿里云 mysql 远程连接跟本地连接性能差 10 倍

  •  
  •   hunliji · Sep 14, 2016 · 3034 views
    This topic created in 3517 days ago, the information mentioned may be changed or developed.

    本人在阿里云安装两台主机, php 连接 mysql (远程)然后循环 1000 次执行相同的 sql ,时间大概是 0.5sec ,然后用本地数据库,执行大概是 0.05sec ,求大神们,有没有提升系能的方案?

    Chichele
        1
    Chichele  
       Sep 14, 2016 via Android
    网络连接的时间楼主算上了吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2463 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 09:32 · PVG 17:32 · LAX 02:32 · JFK 05:32
    ♥ Do have faith in what you're doing.