/*
Warning.
The purpose of query_cache_send_result_to_client() is to lookup the
- first, call query_cache_send_result_to_client,
of (among others) lex->safe_to_cache_query and thd->server_status,
is required for the cache to work properly.
FIXME: cleanup the dependencies in the code to simplify this.
*/
Warning.
The purpose of query_cache_send_result_to_client() is to lookup the
query in the query cache first, to avoid parsing and executing it.
先在查询缓冲里查找查询,如果有则不需要解析和执行该查询
- first, call query_cache_send_result_to_client,
- second, if caching failed, initialise the lexical and syntactic parser.
先执行query_cache_send_result_to_client函数,如果失败,则初始化词法和语法分析器。
of (among others) lex->safe_to_cache_query and thd->server_status,
which are reset respectively in
- mysql_reset_thd_for_next_command()
is required for the cache to work properly.
FIXME: cleanup the dependencies in the code to simplify this.
*/
本文探讨了查询缓存的实现细节,重点介绍了如何通过查询缓冲区来避免重复解析和执行相同查询,同时确保初始化过程符合依赖关系,以实现高效的数据检索。
3213

被折叠的 条评论
为什么被折叠?



