I been looking at some database (MySQL) wrapper classes, A lot of them work like this,
1) Run the sql query
2) while fetching associative mysql array, they cyle through the results and add them to there own array
3) then you would run the class like this below and cycle through it's array
<?php
$database = new Database();
$result = $database->query('SELECT * FROM user;');
foreach ($result as $user){
echo $user->username;
}
?>
Yani burada benim soru, bu yüksek trafik türü sitede iyi değil mi? Ben bildiğim kadarıyla söyleyebilirim, mysql o zaman bu diziden yeni bir dizi bina ve ardından yeni dizi aracılığıyla cycleing edilir, bellek yiyor bir dizi dönen çünkü isteyin. Bu normal bir iyi ya da oldukça fazla değil mi?