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.
E13ba8e702211be152c640df2d8e141f?d=identicon&s=25 Joe Black (joe-black)
on 2006-02-19 06: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
E48d29dc8fedb2878fa518d41cc63d88?d=identicon&s=25 Jan Prill (Guest)
on 2006-02-19 11: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 Prill
E13ba8e702211be152c640df2d8e141f?d=identicon&s=25 Joe Black (joe-black)
on 2006-02-19 13: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 Prill 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 Prill
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Mikkel Bruun (Guest)
on 2006-02-19 15:32
(Received via mailing list)
On Sunday, February 19, 2006, at 1:08 PM, Joe Black wrote:
>#--------------------------------
>
>and my sessions is by default


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

www.strongside.dk    - Football Portal(DK)
nflfeed.helenius.org - Football News(DK)
ting.minline.dk      - Buy Old Stuff!(DK)
E3c79c779c0b390049289cdfe7cb9705?d=identicon&s=25 Bob Hutchison (Guest)
on 2006-02-19 15:47
(Received via mailing list)
On Feb 19, 2006, at 12:30 AM, Joe Black wrote:

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


----
Bob Hutchison                  -- 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/>
E13ba8e702211be152c640df2d8e141f?d=identicon&s=25 Joe Black (joe-black)
on 2006-02-20 04:47
thanks  Mikkel,
you r right. when i swith to production environment, db is 0%;

cheers

Mikkel Bruun wrote:
> On Sunday, February 19, 2006, at 1:08 PM, Joe Black wrote:
>>#--------------------------------
>>
>>and my sessions is by default
>
>
> try swithcing to production enviroment...rails is probably interogation
> the db for your models...
> Mikkel Bruun
>
> 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.