Welcome Guest, Not a member yet? Register   Sign In
Running a same query multiple times?

(This post was last modified: 09-10-2018, 10:48 PM by kaitenz.)


Is it OK to run a single query multiple times?

In my profiler, it shows that I ran the same query about 5 times. That query came from my model named "Forms_model" with method name "get_content()"

Now this method Forms_model::get_content() called from different models 8 times minus 3 because it will only be called if the condition (in some part) is TRUE.

Maybe this is a bad practice so I need your advice. Thank you.

Messages In This Thread
Running a same query multiple times? - by kaitenz - 09-10-2018, 10:47 PM

Theme © iAndrew 2016 - Forum software by © MyBB