Hallo,
eine Zeitmessung für dein Statement könnte so aussehen:
PHP-Code:
<?php
list($usec, $sec) = explode(' ',microtime());
$begin = ((float)$usec + (float)$sec);
//hier fragst du deine DB ab -> $res = mysql_query($query);
list($usec, $sec) = explode(' ',microtime());
$end = ((float)$usec + (float)$sec);
$time = $end - $begin;
echo $time;
?>
Wenn es zu langsam ist dann dürft's wirklich nur an fehlenden Indizies auf plz.plz und stellen.PLZ liegen.
EDIT:
Und hier noch: plz.adm3, stellen.BKZ