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 -- Posted via http://www.ruby-forum.com/.
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 On 2/19/06, Joe Black <allenbobo@gmail.com> wrote:> > > 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 > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060219/075a6336/attachment.html
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-- Posted via http://www.ruby-forum.com/.
On Sunday, February 19, 2006, at 1:08 PM, Joe Black wrote:>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 defaulttry 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) -- Posted with http://DevLists.com. Sign up and save your time!
On Feb 19, 2006, at 12:30 AM, Joe Black wrote:> > 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?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/>
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)-- Posted via http://www.ruby-forum.com/.