Hi,
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.
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.