Welcome Guest, Not a member yet? Register   Sign In
Datamapper memory consumption ? 16Mb exhausted on small query
#2

[eluser]OverZealous[/eluser]
Out of curiosity why are you trying to load 2000 objects into PHP?? PHP is not the correct place to be managing that many objects.

If you are trying to manipulate them, perhaps there is a way to run the update using a query.

If you need them in PHP for some reason (meaning, you need to output the objects), you could try loading them in inside a loop, as thus:
Code:
for($i=0; $i<2000; $i+=100) {
    $myObj->get($i, 100);
    // process 100 objects here
}


Messages In This Thread
Datamapper memory consumption ? 16Mb exhausted on small query - by El Forum - 03-07-2009, 10:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB