数据库图

Connectors(连接层): MySQL服务器时一个进程,会等待客户端的连接(大概在150-250个线程), 每当一个连接过来的时候,都会启用线程进行处理. 然后会先1.身份认证(authentication) 2.权限认证(authorization).
SQL服务层/处理层(包括SQL接口,解析器, 优化器, 缓存): 处理过程如下

Cache: show variables like '%query_cache_type%' -- Cache默认不开启
show variables like '%query_cache_size%' -- Cache默认值 1M
SET GLOBAL query_cache_type = 1; --会报错
query_cache_type 只能配置在 my.cnf 文件中,这大大限制了 qc 的作用
因为QC严格要求一模一样的SQL请求,
其他的都没有提到
网友评论