Slide 11
Slide 11 text
たとえばINDEX(Continent, Population)
複合インデックスになると配列が深くなるイメージ
// ALTER TABLE country ADD INDEX(continent, population);
$index_continent_population["Asia"]= array(
286000 => array("MDV" => array("continent" => "Asia", populatin => 286000, "code" => "MDV")),
328000 => array("BRN" => array("continent" => "Asia", populatin => 328000, "code" => "BRN")),
473000 => array("MAC" => array("continent" => "Asia", populatin => 473000, "code" => "MAC"),
"ZZZ" => array("continent" => "Asia", populatin => 473000, "code" => "ZZZ")),
..
);
$index_continent_population["Europe"]= array(
1000 => array("VAT" => array("continent" => "Europe", populatin => 1000, "code" => "VAT")),
3200 => array("SJM" => array("continent" => "Europe", populatin => 3200, "code" => "SJM")),
25000 => array("GIB" => array("continent" => "Europe", populatin => 25000, "code" => "GIB")),
..
);
..
10/98