I'm trying to grab all data from a table, to calculate some stats.
There is currently 190.000 rows and counting, and I am selecting only the columns necessary.
Using Kohana Query Builder, when I do execute()->count() (counts the rows only)
on the MySQL query, it works fine and returns the number 190.000
When i try to fetch the data, by doing execute()->as_array()
, it dies - it shows a blank page.
I tried researching to determine if it was a MySQL database limit/buffer limit, or PHP side - and I think its the PHP that has a limit? Am i wrong? I can fine grab what I need through the mysql console.
I run on a own and fast server, so this should really not be a problem - but I dont know which variables to configure (php settings)
My memory_limit is currently 128M
My max_execution_time is currently 800
What can I do?
Update:
The log says:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…