I have a problem, so I have in my project 10 database. Each database have the table members
. In each table members
I have 2 millions of rows so in 10 databases ~ 20 millions of rows. I tried like this :
foreach ($aDataBases as $database) {
$sSql = sprintf('SELECT nom,prenom,naiss FROM `%s`', $sTableName);
$rResult = Mysqli::query($sSql, $database);
while ($aRecord = $rResult->fetch_array(MYSQLI_ASSOC))
{
$aUsers['lastName'] = $aRecord['name'];
$aUsers['firstName'] = $aRecord['f_name'];
$aUsers['birthDate'] = $aRecord['birth'];
$aTotalUsers[] = $aUsers;
}
}
When I run I get the error Allowed memory size of 134217728 bytes exhausted
. If for example I put in the select LIMIT 100
work perfect. Can you help me please ?