<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Optimizing on FromDual GmbH</title><link>https://www.fromdual.com/tags/optimizing/</link><description>Recent content in Optimizing on FromDual GmbH</description><generator>Hugo</generator><language>en-GB</language><managingEditor>oli.sennhauser@fromdual.com (Oli Sennhauser)</managingEditor><webMaster>oli.sennhauser@fromdual.com (Oli Sennhauser)</webMaster><copyright>© FromDual GmbH</copyright><lastBuildDate>Mon, 16 Jan 2023 08:28:27 +0000</lastBuildDate><atom:link href="https://www.fromdual.com/tags/optimizing/index.xml" rel="self" type="application/rss+xml"/><item><title>Creating synthetic data sets for tuning SQL queries</title><link>https://www.fromdual.com/blog/creating-synthetic-data-sets-for-tuning-sql-queries/</link><pubDate>Fri, 02 Oct 2020 16:50:33 +0000</pubDate><author>oli.sennhauser@fromdual.com (Oli Sennhauser)</author><guid>https://www.fromdual.com/blog/creating-synthetic-data-sets-for-tuning-sql-queries/</guid><description>&lt;p&gt;When it comes to SQL Query tuning with customers we often get the slow running SQL query and possibly, in good cases, also the table structure. But very often, for various reasons, we do not get the data.&lt;/p&gt;</description></item><item><title>Binlog format MIXED with filtering</title><link>https://www.fromdual.com/blog/binlog-format-mixed-with-filtering/</link><pubDate>Wed, 15 Jul 2015 06:11:36 +0000</pubDate><author>oli.sennhauser@fromdual.com (Oli Sennhauser)</author><guid>https://www.fromdual.com/blog/binlog-format-mixed-with-filtering/</guid><description>&lt;p&gt;Binlog format &lt;code&gt;MIXED&lt;/code&gt; changes the binary log format (&lt;code&gt;ROW&lt;/code&gt; or &lt;code&gt;STATEMENT&lt;/code&gt;) depending on the queries (deterministic or not). This makes it impossible to define 100% correctly working binary log filter rules.&lt;/p&gt;</description></item><item><title>Flush time is set</title><link>https://www.fromdual.com/blog/flush-time-is-set/</link><pubDate>Wed, 15 Jul 2015 06:10:36 +0000</pubDate><author>oli.sennhauser@fromdual.com (Oli Sennhauser)</author><guid>https://www.fromdual.com/blog/flush-time-is-set/</guid><description>&lt;p&gt;If the variable &lt;code&gt;flush_time&lt;/code&gt; is set to a non-zero value, all tables are closed (and flushed) every &lt;code&gt;flush_time&lt;/code&gt; seconds to disk. This can cause unnecessary and high I/O spikes.&lt;/p&gt;</description></item><item><title>Table open cache too small</title><link>https://www.fromdual.com/blog/table-open-cache-too-small/</link><pubDate>Wed, 15 Jul 2015 06:04:36 +0000</pubDate><author>oli.sennhauser@fromdual.com (Oli Sennhauser)</author><guid>https://www.fromdual.com/blog/table-open-cache-too-small/</guid><description>&lt;p&gt;The Table Open Cache (&lt;code&gt;table_open_cache&lt;/code&gt; or old name &lt;code&gt;table_cache&lt;/code&gt;) is a cache to store file handles for all threads. The actual value of cache entries can be seen with the global status of open tables (&lt;code&gt;Open_tables&lt;/code&gt;).&lt;br&gt;
Increasing &lt;code&gt;table_open_cache&lt;/code&gt; increases the number of file descriptors (&lt;code&gt;open_files_limit&lt;/code&gt;) that MySQL requires.&lt;br&gt;
You can check whether you need to increase the Table Open Cache by checking &lt;code&gt;Open_tables&lt;/code&gt; and &lt;code&gt;Opened_tables&lt;/code&gt;. If the value of &lt;code&gt;Opened_tables&lt;/code&gt; is large and you do not use &lt;code&gt;FLUSH TABLES&lt;/code&gt; often (which just forces all tables to be closed and reopened), then you should increase the value of the &lt;code&gt;table_open_cache&lt;/code&gt; variable.&lt;/p&gt;</description></item></channel></rss>