Welcome Guest, Not a member yet? Register   Sign In
model loading is awful
#1

[eluser]Unknown[/eluser]
when CI without loading any model,'print_r($this)' return more than 600 rows data.
when CI loading 1 model, 'print_r($this)' return more than 1200 rows data.
when CI loading 2 models,'print_r($this)' return more than 2400 rows data.
when CI loading 3 models,'print_r($this)' return more than 4800 rows data.
when CI loading 4 models,'print_r($this)' return more than 9600 rows data.
when CI loading 5 models,'print_r($this)' return more than 20000 rows data.
when CI loading 6 models,'print_r($this)' return more than 40000 rows data.

I think the data returned by 'print_r($this)', should be 600*n(n means Model number),instead of CI used 600*2^n (n means Model number).
#2

[eluser]wiredesignz[/eluser]
Most of your returned rows will be showing as *recursive* data and do not create any problems for PHP and is nothing more than an annoyance.
#3

[eluser]Phil Sturgeon[/eluser]
PHP by reference is a wonderful thing. This is a polite RTFM.
#4

[eluser]wiredesignz[/eluser]
Even I haven't read that Phil. Tongue
#5

[eluser]Phil Sturgeon[/eluser]
Call yourself a developer?! >Sad
#6

[eluser]wiredesignz[/eluser]
Some things are just logical after a few years coding, other things need learning as always.
#7

[eluser]Unknown[/eluser]
Thanks!
#8

[eluser]Derek Allard[/eluser]
Welcome to CodeIgniter Jeck; you were fortunate to get responses from 2 of the smartest people around here! I hope to read more from you in the future (but perhaps with slightly less insulting titles then calling CI awful?)
#9

[eluser]BrianDHall[/eluser]
I will also suggest you look into getting a debugger working on your system with CI, such as with Netbeans or whatever you prefer. A quick breakpoint set inside a controller function shows you everything that's loaded, and you'll find there really isn't _that_ much, and what is there is all pretty useful.

Turning on profiling, even using benchmarking, also shows that CI requires extremely little overhead to produce its output - I believe lower than any framework in existence.

An isolated statistic, divorced of its proper context, is perhaps without exception either a) a misunderstanding or b) a pretext for a previously arrived at conclusion.




Theme © iAndrew 2016 - Forum software by © MyBB