. This 2011-year record will not affect the 2010 partition table. At this point, if the user repeatedly query the shipment information for 2010, as long as they use the same SQL statement (no different query criteria), then you can enjoy the benefits of caching mechanism, improve the application system query effect.Three, the impact of multiple applications on th
received select statement in string mode based on the preset hash algorithm, then, go to the Query Cache to check whether the data has been cached. That is to say, if the select request is already in the cache, the data will be directly returned, thus omitting all subsequent steps (such as SQL statement parsing, optimizer optimization and Data Request to the sto
internal temporary disk table is the MyISAM table and this value is used. You can use the Check status value ' Created_tmp_disk_tables ' to learn more. INNODB_BUFFER_POOL_SIZE:INNODB uses this parameter to specify the size of the memory to buffer the data and index, which is the most performance-impacting parameter in the InnoDB engine. Innodb_additional_mem_pool_size: Specifies the size of the memory
algorithm and then go directly to the query cache to find out if it is already cached. That is, if it is already in the cache, the select request returns the data directly, omitting all subsequent steps (such as parsing of SQL statements, optimizer optimizations, and requesting data to the storage engine), which greatly improves performance.
Of course,
, you can say that your cache is useless at all, which is equivalent to disabling it. In this case, does the system allocate the size set by query_cache_size? is this problem to be tested?
If it is set to 1, all results will be cached unless your select statement uses SQL _NO_CACHE to disable the query cache.
If set to
index size. The value of key_buffer_size does not need to be set to be greater than the index.Or no more than 25%-50% of the total memory reserved by the operating system cacheWhen setting, see index field size: select sum (index_length) from information_schema. 'tables'By default, mysql changes all indexes to the default key
say whether the cache is more expensive than the QC system. But one thing is certain, the role of the QC cache is very small, if the application layer can implement the cache, will be able to ignore the results of the QC.
————-below are some of the other details about QC ————— –
First, Query
have explicitly stated that you need to use Query Cache), MySQL will directly HASH the received select statement in string mode based on the preset hash algorithm, then, go to the Query Cache to check whether the data has been cached. That is to say, if the select request i
Analysis on the principle and cache process of using Memcache to cache mysql databases
For large websites such as facebook and ebay, if Memcache is not used as the intermediate cache layer, data access cannot be avoided. for general websites, as long as they have independent servers, you can configure Memcache to spe
flush the cache, and dirty reads will occur if you do not perform a flush cache.Setting the Flushcache= "true" property in the statement configuration, which is true by default, refreshes the cache and does not refresh if it is changed to false. When you use caching, dirty reads occur if you manually modify the query data in a database table.Summary: In general,
level two cache.usecache= "false">3.6 Refreshing the cache (that is, emptying the cache)In the same namespace of mapper, if you have additional insert, UPDATE, delete operation data, you need to flush the cache, and dirty reads will occur if you do not perform a flush cache.Setting the Flushcache= "true" property in the statement configuration, which is true by
What is hard disk caching? We might as well start to understand this concept, in fact, the so-called hard disk caching is used to store and store temporary data space, in general, the larger the cache, then the more temporary files can be stored, then for the computer, the running fluency is higher, for the hard disk, Also can be relative to reduce the hard drive seek and mechanical wear, no doubt, for hard disk is also a good way of maintenance. So i
. Because this architecture method is not closely related to the MySQL database itself, it does not involve too many technical details here.2. Integrate with MySQL into the data service layerIn addition to using Memcached as a tool to quickly improve efficiency, we can also use it to improve the scalability of the data service layer and integrate it with our database, or as a buffer for the database. Let's
another cache.
Cache statement attribute configuration details:
Attribute
Description
Value
Default Value
Eviction
Cache Policy:LRU-least recently used method: removes objects that have not been used for a long period of time.Fifi-first-in-first-out: removes an earlier object from the queue.Soft-soft reference: removes objects usi
status of Msyql
If the value of have_query_cache is yes, the cache is enabled.
Binlog_cache_size: the default size is 32768, that is, 32 K.
Max_binlog_cache_size: The default value is 18446744073709547520. This value is large enough. This parameter corresponds to binlog_cache_size, which indicates the Maximum cache size
explicitly stated that Query Cache is not allowed, or you have explicitly stated that you need to use Query Cache), MySQL will directly HASH the received select statement in string mode based on the preset hash algorithm, then, go to the
MySQL open query cache can have two ways to open the use of the set command to open, and the other is to directly modify the My.ini file directly set is very simple oh.Open the cache, set the cache size, specifically implemented a
, or you have explicitly stated that you need to use Query Cache), MySQL will directly HASH the received select statement in string mode based on the preset hash algorithm, then, go to the Query Cache to check whether the data has been cached. That is to say, if the select r
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.