<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/okzmemorandum/">
    <title>覚書@ ウィキ</title>
    <link>http://w.atwiki.jp/okzmemorandum/</link>
    <atom:link href="https://w.atwiki.jp/okzmemorandum/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>覚書@ ウィキ</description>

    <dc:language>ja</dc:language>
    <dc:date>2012-06-06T22:29:05+09:00</dc:date>
    <utime>1338989345</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/okzmemorandum/pages/27.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okzmemorandum/pages/26.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okzmemorandum/pages/25.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okzmemorandum/pages/24.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okzmemorandum/pages/23.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okzmemorandum/pages/22.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okzmemorandum/pages/21.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okzmemorandum/pages/20.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okzmemorandum/pages/19.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okzmemorandum/pages/18.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/okzmemorandum/pages/27.html">
    <title>子要素に条件に一致する要素の存在を確認する</title>
    <link>https://w.atwiki.jp/okzmemorandum/pages/27.html</link>
    <description>
      以下のような場合に、imgタグのidが&quot;sample&quot;のaタグを非活性にする際に使用した。

&lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;～&quot; id=&quot;test&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;～&quot; id=&quot;sample&quot;&gt;&lt;/a&gt;

スクリプト内
[[jQuery]](&#039;a&#039;).each(function() {
　　if(jQuery(this).is(&quot;img[id=&#039;sample&#039;]&quot;)) {
　　　　jQuery(this).attr(&quot;disable&quot;, &quot;true&quot;);
　　}
});    </description>
    <dc:date>2012-06-06T22:29:05+09:00</dc:date>
    <utime>1338989345</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okzmemorandum/pages/26.html">
    <title>外部SQLでのELSE文</title>
    <link>https://w.atwiki.jp/okzmemorandum/pages/26.html</link>
    <description>
      以下のようにIF ENDの間にSQLコメントとして埋め込む。

#html2(){{{{{{
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;
/*IF inputCode != null*/&lt;br/&gt;
CODE = /*inputCode*/&lt;br/&gt;
-- ELSE CODE IS NULL&lt;br/&gt;
/*END*/
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
}}}}}}    </description>
    <dc:date>2012-06-03T17:23:52+09:00</dc:date>
    <utime>1338711832</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okzmemorandum/pages/25.html">
    <title>Seasar2</title>
    <link>https://w.atwiki.jp/okzmemorandum/pages/25.html</link>
    <description>
      -[[外部SQLでのELSE文&gt;外部SQLでのELSE文]]    </description>
    <dc:date>2012-06-03T17:19:48+09:00</dc:date>
    <utime>1338711588</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okzmemorandum/pages/24.html">
    <title>パーティショニング</title>
    <link>https://w.atwiki.jp/okzmemorandum/pages/24.html</link>
    <description>
      **概要
指定したカラムの内容に応じて、データを分割格納してくれる機能。
[[MySQL]]側が勝手に物理領域を分けて格納してくれるため、SELECTなどでの操作方法は変わらない。
大量データを扱う際の高速化には効果大。
※MySQL（に限らず）では、何もしないと格納データ量の増加に伴い、
　検索時間が飛躍的に増加してしまうが、この機能によりそれを抑えることが可能。
　例として、単純な主キーでの検索時間が
　　　格納件数：約 100万件（パーテイショニングなし）→0.01秒未満
　　　格納件数：約1000万件（パーテイショニングなし）→2.00秒以上
　　　格納件数：約1000万件（パーテイショニングあり）→0.01秒未満
　などの違いになることも。（環境・設定にも大きく左右されるのであくまで一例）

**使用注意点
MySQLが5.1以降であること。
分割したい項目が主キーに含まれていること。

**分割方法
|名称|説明|
|RANGE|カラム値の範囲毎に分割して格納|
|LIST|カラム値毎（1,3,5などの組み合せも可）に分割して格納|
|HASH|カラム値を評価式（デフォルトはMOD）の結果毎に分割して格納|
|KEY|カラム値の評価式（PASSWORDなど）の結果毎に分割して格納。カラムが文字列でもOK|
※上記の他にLINER HASH, LINER KEYがあり。（使用評価式が大規模分割向きのもの）

**設定方法
テーブル作成時、作成後のテーブル変更どちらでも可。
個々の詳細はマニュアル、ヘルプ等を参照のこと。
以下はHASHを使用する際の作成例。

 CREATE TABLE t_rate ( 
    id          INT NOT NULL, 
    currency_id INT NOT NULL, 
    date_time   BIGINT, 
    rate        DECIMAL(12, 8), 
    PRIMARY KEY (id, currency_id) 
 ) ENGINE=InnoDB PARTITION BY HASH (currency_id) PARTITIONS 10;

これで、内部的にcurrency_idの値毎に    </description>
    <dc:date>2012-05-13T10:46:54+09:00</dc:date>
    <utime>1336873614</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okzmemorandum/pages/23.html">
    <title>MySQL</title>
    <link>https://w.atwiki.jp/okzmemorandum/pages/23.html</link>
    <description>
      -[[パーティショニング]]    </description>
    <dc:date>2012-05-13T10:47:43+09:00</dc:date>
    <utime>1336873663</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okzmemorandum/pages/22.html">
    <title>log4jの出力先を動的に変更する</title>
    <link>https://w.atwiki.jp/okzmemorandum/pages/22.html</link>
    <description>
      以下のように記述

#html2(){{{{{{
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;
Logger log = Logger.getLogger();&lt;br/&gt;
FileAppender appendar= (FileAppendar)log.getParent().getAppendar(&quot;Root&quot;);&lt;br/&gt;
appendar.setFile(ファイル名);&lt;br/&gt;
appendar.activeOptions();&lt;br/&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
}}}}}}    </description>
    <dc:date>2012-05-08T23:10:59+09:00</dc:date>
    <utime>1336486259</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okzmemorandum/pages/21.html">
    <title>log4j</title>
    <link>https://w.atwiki.jp/okzmemorandum/pages/21.html</link>
    <description>
      -[[log4jの出力先を動的に変更する&gt;log4jの出力先を動的に変更する]]    </description>
    <dc:date>2012-05-08T22:58:03+09:00</dc:date>
    <utime>1336485483</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okzmemorandum/pages/20.html">
    <title>Java</title>
    <link>https://w.atwiki.jp/okzmemorandum/pages/20.html</link>
    <description>
      **-[[log4j&gt;log4j]]
**-[[Seasar2&gt;Seasar2]]    </description>
    <dc:date>2012-06-03T17:18:11+09:00</dc:date>
    <utime>1338711491</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okzmemorandum/pages/19.html">
    <title>データベース</title>
    <link>https://w.atwiki.jp/okzmemorandum/pages/19.html</link>
    <description>
      **-[[Oracle&gt;Oracle]]
**-[[MySQL&gt;MySQL]]    </description>
    <dc:date>2012-05-06T23:11:50+09:00</dc:date>
    <utime>1336313510</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okzmemorandum/pages/18.html">
    <title>idにピリオドがある要素を指定する</title>
    <link>https://w.atwiki.jp/okzmemorandum/pages/18.html</link>
    <description>
      以下のような場合、
|&lt;input type=&quot;text&quot; id=&quot;class.text&quot; /&gt;|

バックスラッシュ２つでエスケープする。
|[[jQuery]](&#039;#class\\.text&#039;)|    </description>
    <dc:date>2012-05-06T23:13:59+09:00</dc:date>
    <utime>1336313639</utime>
  </item>
  </rdf:RDF>
