I have a database with well over 350,000 records and was wondering if there was anything i can do to speed up how it reads from the database. i cannot remove any of these tables.
here is how i read from the database now.
<?
<?
include("_db.connection.php");
$song = "<song ";
$songs = "</songs>";
$folder=$_POST['folder'];
$xmlstring = "";
$limit = 40;
$member_result = mysql_query("SELECT filename, songname, bandname FROM images WHERE mid = '$folder' ORDER BY ord LIMIT $limit");
while($file = mysql_fetch_assoc($member_result)){
$url = $file["filename"];
$name = $file["songname"];
$band = $file["bandname"];
$xmlstring = $xmlstring . $song . 'name="'.$name.'" band="'.$band.'" file="'.$url.'"/>';
}
$xmlstringfinal = $xmlstring.$songs;
echo "&playurl=$xmlstringfinal&";
mysql_close($db);
?>
Thanks for the help in advance!