E basme je zanimalo sta je brze pa sam istestirao
Code:
....
for ($i=0;$i<5000;$i++){
$aResult=mysql_query($SQL);
}
..
OS: winXP, procesor: duron 1300
1. SELECT MAX(id) AS MaxID FROM tabela
dobio sam srednju vrednost 6,51 sec
a za
2. SELECT id FROM tabela ORDER BY id DESC LIMIT 1;
dobio 5,27 sec
Aj sad odo