• 技术文章 >数据库 >MySQL

    MySQL中join buffer是什么

    小妮浅浅小妮浅浅2021-07-16 17:57:02原创2708

    说明

    1、在MySQL对于join操作的处理过程中,join buffer是一个重要的概念。

    2、是MySQL对于table join的一个重要的优化手段。虽然这个概念实现并不复杂,但是这个是实现MySQL join连接优化的一个重要方法,在连接的时候可以极大提高join查询的效率。

    实例

    Table name      Type
    t1              range
    t2              ref
    t3              ALL
    The join is then done as follows:
     
    - While rows in t1 matching range
     - Read through all rows in t2 according to reference key
      - Store used fields from t1, t2 in cache
      - If cache is full
        - Read through all rows in t3
          - Compare t3 row against all t1, t2 combinations in cache
            - If row satisfies join condition, send it to client
        - Empty cache
     
    - Read through all rows in t3
     - Compare t3 row against all stored t1, t2 combinations in cache
       - If row satisfies join condition, send it to client

    以上就是MySQL中join buffer的介绍,希望对大家有所帮助。更多mysql学习指路:MySQL

    推荐操作系统:windows7系统、mysql5.8、DELL G3电脑

    专题推荐:mysql joinbuffer
    品易云
    上一篇:mysql存储过程是什么 下一篇:mysql多表查询如何实现

    相关文章推荐

    • mysql常见函数有哪几类• mysql分组查询是什么• mysql间隙锁是什么• mysql中如何共享读锁• mysql中LIMIT分页如何优化• mysql查询优化策略有哪些• mysql乐观锁如何实现• mysql中行锁是什么• mysql如何解除死锁• mysql死锁的四个条件• 查看mysql版本的命令• mysql有哪些数据操作• mysql主键约束的设置• mysql中SQL的概念介绍• mysql中系统变量的两种类型• mysql中自定义变量有哪些

    全部评论我要评论

    © 2021 Python学习网 苏ICP备2021003149号-1

  • 取消发布评论
  • 

    Python学习网