<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/styles/rss.css" type="text/css"?>
<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  xmlns:admin="http://webns.net/mvcb/"
  xmlns="http://purl.org/rss/1.0/"
>
 <channel rdf:about="http://16hot.blog.isyi.com/rss/rss10/1">
  <title>16hot 的博客</title>
  <link>http://16hot.blog.isyi.com</link>
  <description>16hot 一心想要建设一个公共平台给所有有需要的朋友使用。
但是，在这里留给自己一块空间，抒发自己的心情。</description>
    <dc:creator>16hot</dc:creator>
  <dc:date>2008-11-19T19:55:53Z</dc:date>
  <admin:generatorAgent rdf:resource="http://www.lifetype.net" />
  <items>
   <rdf:Seq>
       <rdf:li rdf:resource="http://16hot.blog.isyi.com/post/1/811" />
       <rdf:li rdf:resource="http://16hot.blog.isyi.com/post/1/133" />
       <rdf:li rdf:resource="http://16hot.blog.isyi.com/post/1/132" />
       <rdf:li rdf:resource="http://16hot.blog.isyi.com/post/1/29" />
       <rdf:li rdf:resource="http://16hot.blog.isyi.com/post/1/2" />
       <rdf:li rdf:resource="http://16hot.blog.isyi.com/post/1/1" />
      </rdf:Seq>
  </items> 
 </channel>
  <item rdf:about="http://16hot.blog.isyi.com/post/1/811">
  <title>SQLite Optimization FAQ</title>
  <link>http://16hot.blog.isyi.com/post/1/811</link>
  <dc:description>&lt;p&gt;原文地址：&amp;nbsp;&lt;/p&gt;&lt;p&gt;http://web.utk.edu/~jplyon/sqlite/SQLite_optimization_FAQ.html&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</dc:description>
      
    <dc:subject>General</dc:subject>
     
    
  <dc:date>2008-03-22T19:08:44Z</dc:date>
    <dc:creator>16hot</dc:creator>
 </item>
  <item rdf:about="http://16hot.blog.isyi.com/post/1/133">
  <title>Language Structure</title>
  <link>http://16hot.blog.isyi.com/post/1/133</link>
  <dc:description>&lt;span class=&quot;ft0&quot; style=&quot;235px; TOP: 140px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;able names. If this were not true (that is, if two different types of structured variables could share&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;235px; TOP: 158px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;component member names), it would not be clear which default structured variable to use for refer &lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;235px; TOP: 177px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;ences to member names that are not qualified by an instance name.&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;235px; TOP: 213px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;If a structured variable instance name is not legal as an unquoted identifier, refer to it as a quoted&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;235px; TOP: 232px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;identifier using backticks. For example,&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;509px; TOP: 232px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;hot cache&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;605px; TOP: 232px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;is not legal, but&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;714px; TOP: 232px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt; hot cache &lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;830px; TOP: 232px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;is.&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;235px; TOP: 267px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;global&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;296px; TOP: 267px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;,&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;305px; TOP: 267px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;session&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;377px; TOP: 267px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;, and&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;416px; TOP: 267px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;local&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;472px; TOP: 267px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;are not legal instance names. This avoids a conflict with notation&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;235px; TOP: 286px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;such as&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;288px; TOP: 286px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;@@global.&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft2&quot; style=&quot;380px; TOP: 286px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;&lt;i&gt;var_name&lt;/i&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;466px; TOP: 286px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;for referring to non structured system variables.&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;209px; TOP: 339px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;At the moment, the first two rules have no possibility of being violated because the only structured vari &lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;209px; TOP: 357px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;able type is the one for key caches. These rules assume greater significance if some other type of struc &lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;209px; TOP: 376px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;tured variable is created in the future.&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;209px; TOP: 412px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;With one exception, it is allowable to refer to structured variable components using compound names in&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;209px; TOP: 430px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;any context where simple variable names can occur. For example, you can assign a value to a structured&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;209px; TOP: 449px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;variable using a command line option:&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;209px; TOP: 484px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;shell&amp;gt; mysqld   hot_cache.key_buffer_size=64K&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;209px; TOP: 536px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;In an option file, do this:&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;209px; TOP: 570px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;[mysqld]&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;209px; TOP: 587px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;hot_cache.key_buffer_size=64K&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;209px; TOP: 639px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;If you start the server with such an option, it creates a key cache named&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;728px; TOP: 639px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;hot_cache&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;826px; TOP: 639px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;with a size of&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;209px; TOP: 658px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;64KB in addition to the default key cache that has a default size of 8MB.&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;209px; TOP: 693px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;Suppose that you start the server as follows:&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;209px; TOP: 728px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;shell&amp;gt; mysqld   key_buffer_size=256K &lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;301px; TOP: 745px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;  extra_cache.key_buffer_size=128K &lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;301px; TOP: 762px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;  extra_cache.key_cache_block_size=2048&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;209px; TOP: 813px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;In this case, the server sets the size of the default key cache to 256KB. (You could also have written&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;209px; TOP: 832px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt; default.key_buffer_size=256K&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;505px; TOP: 832px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;.) In addition, the server creates a second key cache named&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;209px; TOP: 851px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;extra_cache&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;326px; TOP: 851px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;that has a size of 128KB, with the size of block buffers for caching table index blocks&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;209px; TOP: 869px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;set to 2048 bytes.&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;209px; TOP: 905px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;The following example starts the server with three different key caches having sizes in a 3:1:1 ratio:&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;209px; TOP: 940px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;shell&amp;gt; mysqld   key_buffer_size=6M &lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;301px; TOP: 957px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;  hot_cache.key_buffer_size=2M &lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;301px; TOP: 973px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;  cold_cache.key_buffer_size=2M&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;209px; TOP: 1025px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;Structured variable values may be set and retrieved at runtime as well. For example, to set a key cache&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;209px; TOP: 1044px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;named&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;259px; TOP: 1044px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;hot_cache&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;355px; TOP: 1044px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;to a size of 10MB, use either of these statements:&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;209px; TOP: 1079px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;mysql&amp;gt; SET GLOBAL hot_cache.key_buffer_size = 10*1024*1024;&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;209px; TOP: 1095px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;mysql&amp;gt; SET @@global.hot_cache.key_buffer_size = 10*1024*1024;&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;209px; TOP: 1147px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;To retrieve the cache size, do this:&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot; style=&quot;209px; TOP: 1182px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Courier&quot;&gt;mysql&amp;gt; SELECT @@global.hot_cache.key_buffer_size;&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;ft0&quot; style=&quot;512px; TOP: 1243px&quot; name=&quot;INTRA&quot;&gt;&lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;556&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;nav&quot; style=&quot;10px; TOP: 1010px&quot;&gt;&lt;pre&gt;&lt;html /&gt;&lt;head&gt;&lt;/head&gt;&lt;meta content=&quot;Microsoft FrontPage 5.0&quot; name=&quot;GENERATOR&quot; /&gt;&lt;meta content=&quot;FrontPage.Editor.Document&quot; name=&quot;ProgId&quot; /&gt;&lt;div align=&quot;center&quot;&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/span&gt;</dc:description>
      
    <dc:subject>General</dc:subject>
     
    
  <dc:date>2005-10-04T07:42:02Z</dc:date>
    <dc:creator>16hot</dc:creator>
 </item>
  <item rdf:about="http://16hot.blog.isyi.com/post/1/132">
  <title>MySQL memory used</title>
  <link>http://16hot.blog.isyi.com/post/1/132</link>
  <dc:description>MySQL memory used = key_buffer + max_connections * (join_buffer + record_buffer + sort_buffer + thread_stack + tmp_table_size)</dc:description>
      
    <dc:subject>General</dc:subject>
     
    
  <dc:date>2005-10-04T07:34:53Z</dc:date>
    <dc:creator>16hot</dc:creator>
 </item>
  <item rdf:about="http://16hot.blog.isyi.com/post/1/29">
  <title>终于支持三级域名访问了</title>
  <link>http://16hot.blog.isyi.com/post/1/29</link>
  <dc:description>终于支持三级域名访问了&lt;p&gt;经过调试后，发现在后台设置支持三级域名后，不能访问首页了。&lt;/p&gt;&lt;p&gt;后来发现原来是有个地方需要修改下。&lt;/p&gt;&lt;p&gt;现在已经改好了，已经支持三级域名访问了。哈哈&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://16hot.blog.isyi.com&quot;&gt;http://16hot.blog.isyi.com&lt;/a&gt; &lt;/p&gt;</dc:description>
      
    <dc:subject>General</dc:subject>
     
    
  <dc:date>2005-07-14T23:32:00Z</dc:date>
    <dc:creator>16hot</dc:creator>
 </item>
  <item rdf:about="http://16hot.blog.isyi.com/post/1/2">
  <title>发表文章来测试</title>
  <link>http://16hot.blog.isyi.com/post/1/2</link>
  <dc:description>发表文章来测试&lt;p&gt;发表文章来测试&lt;/p&gt;&lt;p /&gt;</dc:description>
      
    <dc:subject>General</dc:subject>
     
    
  <dc:date>2005-07-10T05:57:07Z</dc:date>
    <dc:creator>16hot</dc:creator>
 </item>
  <item rdf:about="http://16hot.blog.isyi.com/post/1/1">
  <title>祝贺您</title>
  <link>http://16hot.blog.isyi.com/post/1/1</link>
  <dc:description>如果您阅读到这篇文章，这就意味着您注册的博客已经申请成功。</dc:description>
      
    <dc:subject>General</dc:subject>
     
    
  <dc:date>2005-07-09T21:53:24Z</dc:date>
    <dc:creator>16hot</dc:creator>
 </item>
 </rdf:RDF>