本帖最后由 jiangguilong2000 于 2011-07-03 18:20:11 编辑

解决方案 »

  1.   

    如果非纯插入数据的日志,有更新的话  还是用innodb
      

  2.   

    另外myisam的concurrent _insert 设置得是多少
      

  3.   

    mysql> show variables like '%concurrent%'
        -> ;
    +-------------------+-------+
    | Variable_name     | Value |
    +-------------------+-------+
    | concurrent_insert | 1     | 
    +-------------------+-------+
    1 row in set (0.00 sec)
      

  4.   

    mysql> show variables like '%concurrent%'
        -> ;
    +-------------------+-------+
    | Variable_name     | Value |
    +-------------------+-------+
    | concurrent_insert | 1     | 
    +-------------------+-------+
    1 row in set (0.00 sec)
      

  5.   

    使用innodb引擎,另外,使用乐观锁定。update的时候, 带old value 绑定
      

  6.   

    使用innodb引擎并不合适,会带来性能的大幅下降,因为日志表是没有事务完整的需求的,何况行锁的开销也是比较大的。不赞成!
      

  7.   

    archive  引擎不支持更新操作 我也遇见了同样的问题 ,表经常被锁 myisam效率高 我email [email protected]  有什么好的建议给我发邮箱 谢谢 
      

  8.   

    通过 set global concurrent_insert=2 或set global concurrent_insert=0 可以更改锁得级别,这样可以缓解表锁的情况