Skip to content

Commit

Permalink
Enhabling query cache on MySQL 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
bunop committed Jul 24, 2015
1 parent 747c734 commit 2df0e00
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions compose/mysql/db/conf.d/server.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,17 @@ query_cache_min_res_unit = 4K
# slowdown instead of a performance improvement.
query_cache_size = 512M

# Set the query cache type. Setting the GLOBAL value sets the type for all clients that
# connect thereafter. Individual clients can set the SESSION value to affect their own use
# of the query cache. Possible values are shown in the following table:
# Option Description
# 0 or OFF Do not cache results in or retrieve results from the query cache. Note that this does not
# deallocate the query cache buffer. To do that, you should set query_cache_size to 0.
# 1 or ON Cache all cacheable query results except for those that begin with SELECT SQL_NO_CACHE.
# 2 or DEMAND Cache results only for cacheable queries that begin with SELECT SQL_CACHE.
# Cache all cacheable query results except for those that begin with SELECT SQL_NO_CACHE.
query_cache_type = ON

###QUERY CACHE IS DISABLED
###THE QUERY CACHE IN MYSQL CLUSTER CAN HAMPER PERFORMANCE A LOT. HENCE IT IS DISABLED
###BECAUSE INVALIDATION OF IT TAKES TIME (REMEMBER, IT IS A DISTRIBUTED ENVIRONMENT)
Expand Down

0 comments on commit 2df0e00

Please sign in to comment.