summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorKristofer Pettersson <kristofer.pettersson@sun.com>2009-03-05 11:41:19 +0100
committerKristofer Pettersson <kristofer.pettersson@sun.com>2009-03-05 11:41:19 +0100
commit5c42a6cf54fe0166b0e07e7361b100ff88118036 (patch)
tree4a3fb25cbf540145fb9484d01c786345d98ee6a8 /storage
parentd61f114f7f753e8443d48190826f121662066967 (diff)
downloadmariadb-git-5c42a6cf54fe0166b0e07e7361b100ff88118036.tar.gz
Bug#37416 When SQL_NO_CACHE is used, MySQL still lookup into the query cache
The query cache module did not check for the SQL_NO_CACHE keyword before attempting to query the hash lookup table. This had a small performance impact. By introducing a check on the query string before obtaining the hash mutex we can gain some performance if the SQL_NO_CACHE directive is used often. sql/sql_cache.cc: * Introduced new helper function, has_no_cache_directive, for checking the existance of a SQL_NO_CACHE directive before actual parsing of the query.
Diffstat (limited to 'storage')
0 files changed, 0 insertions, 0 deletions