open icon indicating copy to clipboard operation
open copied to clipboard

join_buffer_size

Open kingreatwill opened this issue 3 years ago • 4 comments

https://github.com/kingreatwill/open/tree/master/DB/RDBMS/mysql

SELECT @@optimizer_switch 范围索引 有限制,当区间大了可能不会使用索引:(range_optimizer_max_mem_size默认8388608即8M。0表示不限制。show variables like 'range_optimizer_max_mem_size';)

join_buffer_size 262144 256KB

kingreatwill avatar Dec 21 '21 07:12 kingreatwill

SELECT /*+ SET_VAR(optimizer_switch = 'condition_fanout_filter=off') */ ... 对于给定的查询,使用优化器提示:

kingreatwill avatar Dec 21 '21 07:12 kingreatwill

查看优化sql explain SELECT * FROM t1 WHERE 1 ; show warnings;

kingreatwill avatar Dec 21 '21 07:12 kingreatwill

前缀索引

kingreatwill avatar Apr 27 '22 05:04 kingreatwill