Hi, I built a sample app on rails. I''m using the default options provided "SQLITE3" database and WEBrick webserver. When I''m trying to open two pages at a time it is taking so much time to load a single page. Can any one suggest me ways to improve the performance of rails app? -- Regards, Rahul Attuluri, -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 12 October 2011 21:54, Rahul Attuluri <rahulsccl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > I built a sample app on rails. I''m using the default options provided > "SQLITE3" database and WEBrick webserver. When I''m trying to open two pages > at a time it is taking so much time to load a single page. Can any one > suggest me ways to improve the performance of rails app?Firstly are you running in production mode? If not then it reloads the code for every action. Secondly sqlite3 is really only for development work. It is not intended for multi-user access. Switch to postgres or mysql. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi, I have changed my database to mysql. Can I know how to deploy my app in production mode. On Thu, Oct 13, 2011 at 10:11 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 12 October 2011 21:54, Rahul Attuluri <rahulsccl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > > I built a sample app on rails. I''m using the default options provided > > "SQLITE3" database and WEBrick webserver. When I''m trying to open two > pages > > at a time it is taking so much time to load a single page. Can any one > > suggest me ways to improve the performance of rails app? > > Firstly are you running in production mode? If not then it reloads > the code for every action. > > Secondly sqlite3 is really only for development work. It is not > intended for multi-user access. Switch to postgres or mysql. > > Colin > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Regards, Rahul Attuluri -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 13 October 2011 19:22, RAHUL ATTULURI <rahul.attuluriug08-9geRo0GdX4mZ5K3g6XVvbDEVjDUJwPlv@public.gmane.org> wrote:> Hi, > I have changed my database to mysql. Can I know how to deploy my app in > production mode.rails server -e production By the way, please don''t top post, insert your reply at appropriate points in previous message, it makes it easier to follow the thread. Thanks. Colin> > On Thu, Oct 13, 2011 at 10:11 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: >> >> On 12 October 2011 21:54, Rahul Attuluri <rahulsccl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > Hi, >> > I built a sample app on rails. I''m using the default options >> > provided >> > "SQLITE3" database and WEBrick webserver. When I''m trying to open two >> > pages >> > at a time it is taking so much time to load a single page. Can any one >> > suggest me ways to improve the performance of rails app? >> >> Firstly are you running in production mode? If not then it reloads >> the code for every action. >> >> Secondly sqlite3 is really only for development work. It is not >> intended for multi-user access. Switch to postgres or mysql. >> >> Colin >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> > > > > -- > Regards, > Rahul Attuluri > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- gplus.to/clanlaw -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Simply start webserver in production mod, e.g *rails s -e prod* 2011/10/13 RAHUL ATTULURI <rahul.attuluriug08-9geRo0GdX4mZ5K3g6XVvbDEVjDUJwPlv@public.gmane.org>> Hi, > I have changed my database to mysql. Can I know how to deploy my app in > production mode. > > > On Thu, Oct 13, 2011 at 10:11 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>wrote: > >> On 12 October 2011 21:54, Rahul Attuluri <rahulsccl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > Hi, >> > I built a sample app on rails. I''m using the default options >> provided >> > "SQLITE3" database and WEBrick webserver. When I''m trying to open two >> pages >> > at a time it is taking so much time to load a single page. Can any one >> > suggest me ways to improve the performance of rails app? >> >> Firstly are you running in production mode? If not then it reloads >> the code for every action. >> >> Secondly sqlite3 is really only for development work. It is not >> intended for multi-user access. Switch to postgres or mysql. >> >> Colin >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> > > > -- > Regards, > Rahul Attuluri > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- Sincerely, Nikita Demeschenko -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
WEBrick is not intended to run a rails production application. It can only server a single request at time. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.