Welcome Guest, Not a member yet? Register   Sign In
huge php array
#1

[eluser]Reynolds[/eluser]
Hello guys,

If I load a thousands of data into a PHP array, assuming the data came from iteration in a db result.
Does it eat a lot of memory? and how is it computed? is it feasible? if not what could be the best solution?

The problem is, I need to sort (shown as list on view) a computation result from several fields. But I was thinking if I just put all db result into an array, then compute it, finally sort it. Or should I just create a MYSQL FUNCTION to do the computation? so I could sort without creating a PHP array?

Thanks in advance,


Messages In This Thread
huge php array - by El Forum - 03-17-2010, 08:56 PM
huge php array - by El Forum - 03-17-2010, 09:15 PM
huge php array - by El Forum - 03-17-2010, 09:58 PM
huge php array - by El Forum - 03-18-2010, 05:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB