Can you give a answer?

when i tail -f my log:

i find this:

“Completed in 0.00233 (428 reqs/sec) | Rendering: 0.00005 (2%) | DB:
0.00118 (50%)”

i am sure, this request didn’t access DB. but why here DB is (50%)

it’s log wrong or my fault?

regards

Hi, Joe,

may I ask why you are that sure that your DB isn’t hit? Have you
doublechecked that if it is a page that is served from cache the
controller
action knows this and really bypasses the DB? Are you sure, that
sessions
are handled by the filesystem (the default) or may they are the reason
for
DB requests? What happens if you shut down the DB for this request?

Best Regards
Jan P.

hi jan
when i shout down db. access is fail.

but, i’m sure there are no db hit.
my controller
#-------------------------------
def index
render(:text=>‘hello’)
return
end
#--------------------------------

and my sessions is by default

Jan P. wrote:

Hi, Joe,

may I ask why you are that sure that your DB isn’t hit? Have you
doublechecked that if it is a page that is served from cache the
controller
action knows this and really bypasses the DB? Are you sure, that
sessions
are handled by the filesystem (the default) or may they are the reason
for
DB requests? What happens if you shut down the DB for this request?

Best Regards
Jan P.

On Sunday, February 19, 2006, at 1:08 PM, Joe B. wrote:

#--------------------------------

and my sessions is by default

try swithcing to production enviroment…rails is probably interogation
the db for your models…
Mikkel B.

www.strongside.dk - Football Portal(DK)
nflfeed.helenius.org - Football News(DK)
ting.minline.dk - Buy Old Stuff!(DK)

On Feb 19, 2006, at 12:30 AM, Joe B. wrote:

it’s log wrong or my fault?
Have you tried this in production mode?


Bob H. – blogs at <http://www.recursive.ca/
hutch/>
Recursive Design Inc. – http://www.recursive.ca/
Raconteur – http://www.raconteur.info/
xampl for Ruby – http://rubyforge.org/projects/xampl/

thanks Mikkel,
you r right. when i swith to production environment, db is 0%;

cheers

Mikkel B. wrote:

On Sunday, February 19, 2006, at 1:08 PM, Joe B. wrote:

#--------------------------------

and my sessions is by default

try swithcing to production enviroment…rails is probably interogation
the db for your models…
Mikkel B.

www.strongside.dk - Football Portal(DK)
nflfeed.helenius.org - Football News(DK)
ting.minline.dk - Buy Old Stuff!(DK)