说明
1、在mysql对于join操作的处理过程中,join buffer是一个重要的概念。
2、是mysql对于table join的一个重要的优化手段。虽然这个概念实现并不复杂,但是这个是实现mysql join连接优化的一个重要方法,在连接的时候可以极大提高join查询的效率。
实例
table name typet1 ranget2 reft3 allthe 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 buffe的详细内容。