Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14343

CI profile help for db qureis.

$
0
0
Hi
I need some help on profile, i am running 10 db query on my home page including 4 models, but in profiling results it show for $db following

DATABASE:  cms (page:$db)   QUERIES: 10 (0.0427 seconds)  (Hide)

for any model call on same page results are following

DATABASE:  cms (Model_m:$_database)   QUERIES: 10 (0.0087 seconds)

my question is CI executing 10 queries on each db or model call if yes than it is calling 10 queries on each model load. this is really confusing please somebody clear it. these are just 10 calls or more.

in my CI 2 profile log it show each call under $db, but with CI 3 it show 10 query for $db, also on each model.

Viewing all articles
Browse latest Browse all 14343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>