Welcome Guest, Not a member yet? Register   Sign In
ActiveRecord for CodeIgniter: Rails-style model interactions
#63

[eluser]Andre83[/eluser]
[quote author="chromice" date="1195153615"]
However, this method increased the memory foot print of the script. So I ditched the idea altogether.

If one aims for speed it is ALWAYS better to fetch_related_*() for each object
returned by find_all(), rather than store ALL of them in the result array.
[/quote]

Yep, you're right about that memory thing; I use kind of a hybrid between the two. Good job, anyways!


Messages In This Thread
ActiveRecord for CodeIgniter: Rails-style model interactions - by El Forum - 11-15-2007, 07:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB