- 论坛徽章:
- 0
|
原帖由 apile 于 2008-8-20 16:54 发表 ![]()
他是说perl不行....印象中..如果没有启动mod_perl, 速度慢是正常的..
因为os fork 一个process也要一段时间,
启动mod_perl , 速度会快很多....
我都用informix 当DB...没测量过...
对。。。。。。 perl 连接 mysql 速度很不行。。。非常慢。。。。
系统是 cenos ,默认的perl , 代码就简单的 :
use DBI();
my $dbh=DBI->connect("DBI:mysql:database=com_spbo;host=192.168.0.1","cgi", "cgi88888cgi",{'RaiseError' => 1});
$dbh->do("set names utf8");
my $sth=$dbh->prepare("SELECT * FROM `spbo_matches` where `match_nba` = '1'");
$sth->execute();
while(my $ref = $sth->fetchrow_hashref()){
......
}
非常慢的。。。。。 |
|