1
0
mirror of https://github.com/e107inc/e107.git synced 2025-05-04 19:27:54 +02:00

Query speedups - thanks Mikey

This commit is contained in:
e107steved 2010-10-05 19:39:08 +00:00
parent ab940b89ff
commit 38b9da0488
2 changed files with 4 additions and 3 deletions

View File

@ -91,7 +91,7 @@ function read_tables($tab)
}
}
if (strpos($line, "TYPE=") !== FALSE)
if ((strpos($line, "TYPE=") !== FALSE) || (strpos($line, "ENGINE=") !== FALSE))
{
$current_table = "";
}

View File

@ -355,8 +355,9 @@ CREATE TABLE online (
online_location text NOT NULL,
online_pagecount tinyint(3) unsigned NOT NULL default '0',
online_active int(10) unsigned NOT NULL default '0',
online_agent varchar(255) NOT NULL default ''
) TYPE=MyISAM;
online_agent varchar(255) NOT NULL default '',
KEY online_ip (online_ip)
) TYPE=InnoDB;
# --------------------------------------------------------
#