Forum: Ruby on Rails can you give a answer?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Joe B. (Guest)
on 2006-02-19 07:30
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
Jan P. (Guest)
on 2006-02-19 12:56
(Received via mailing list)
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.
Joe B. (Guest)
on 2006-02-19 14:08
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.
Mikkel B. (Guest)
on 2006-02-19 16:32
(Received via mailing list)
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)
Bob H. (Guest)
on 2006-02-19 16:47
(Received via mailing list)
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/>
Joe B. (Guest)
on 2006-02-20 05:47
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)
This topic is locked and can not be replied to.