CodeInigniter dbforge add índice
$sql = "CREATE INDEX your_index_name ON table_name(field_name)";
$this->db->query($sql);
Matteoweb
$sql = "CREATE INDEX your_index_name ON table_name(field_name)";
$this->db->query($sql);