[Rails] Re: Rails 2.3.3 has a very serious performance problem

2009-09-05 Thread Clive
09-09-06 09:54:58) [GET] User Load (0.2ms) SELECT * FROM `users` Rendering template within layouts/users Rendering users/index User Columns (1.6ms) SHOW FIELDS FROM `users` Completed in 21ms (View: 7, DB: 2) | 200 OK [http://210.77.26.176/ users/] On Sep 6, 9:52 am, Clive wrote: > Now

[Rails] Re: Rails 2.3.3 has a very serious performance problem

2009-09-05 Thread Clive
1 45.9 43 143 Percentage of the requests served within a certain time (ms) 50% 43 66% 43 75% 43 80%143 90%143 95%143 98%143 99%143 100%143 (longest request) On Sep 4, 11:30 pm, Frederick Cheung wrote: > On Sep 4, 3:31 pm, Clive wrote:

[Rails] Re: Rails 2.3.3 has a very serious performance problem

2009-09-04 Thread Clive
Did you visit your app by localhost or by your IP address? Visiting by localhost is quite fast. On Sep 4, 1:12 am, Frederick Cheung wrote: > On Sep 3, 3:58 pm, Clive wrote: > > > On my Ubuntu 8.04 64 bit desktop, I created an empty Rails project and > > from another machine

[Rails] Re: Rails 2.3.3 has a very serious performance problem

2009-09-04 Thread Clive
, this slows down our development significantly and makes the developers very frustrated when they need to wait for each request. On Sep 4, 3:25 am, Colin Law wrote: > 2009/9/3 Clive : > > > > > On my Ubuntu 8.04 64 bit desktop, I created an empty Rails project and > > from

[Rails] Re: Rails 2.3.3 has a very serious performance problem

2009-09-04 Thread Clive
hen you did this "test" did you run the tests multiple times and take > the average? Was this something that was reproducible? > > On Sep 3, 7:58 am, Clive wrote: > > > On my Ubuntu 8.04 64 bit desktop, I created an empty Rails project and > > from another machine, I

[Rails] Rails 2.3.3 has a very serious performance problem

2009-09-03 Thread Clive
On my Ubuntu 8.04 64 bit desktop, I created an empty Rails project and from another machine, I used ab -n 10 http://210.77.27.169:3000/ to test the performance: === When I put rails 2.3.3 under vendor/rails: Server Software:WEBrick/1.3.1 Server Hostn

[Rails] Re: Isn't there any performance issue when saving serialized attributes every time?

2009-08-15 Thread clive
list later. But besides friend list, there are other fields that need to stored as serialized attr. Thanks On Aug 15, 11:32 pm, Matt Jones wrote: > On Aug 15, 8:39 am, clive wrote: > > > The world continued to function because few people used rails in high > > profile website at

[Rails] Re: Isn't there any performance issue when saving serialized attributes every time?

2009-08-15 Thread clive
://rails.lighthouseapp.com/projects/8994/tickets/2764-supporting-partial-updates-for-serialized-columns I hope it will be merged to edge rails On Aug 15, 6:15 pm, Frederick Cheung wrote: > On Aug 15, 11:08 am, Clive wrote: > > > > > In edge rails,  serialized attributes are s

[Rails] Isn't there any performance issue when saving serialized attributes every time?

2009-08-15 Thread Clive
In edge rails, serialized attributes are saved every time no matter they are changed or not: def update_with_dirty if partial_updates? # Serialized attributes should always be written in case they've been # changed in place. update_without_dirty(c

[Rails] Heroku Garden - reversing or changing a 'generate scaffold' command

2009-04-12 Thread Clive
In Heroku Garden, is there a way of reversing or changing a 'generate scaffold' command? I often find I need to make changes to the scaffolded application but I do not know how to. 'script/destroy scaffold Modelname' from the console doesn't seem to work. For example, I generated a Product scaffo

[Rails] How to access the binding of the caller within a method

2009-03-01 Thread Clive
Probably this is a ruby trick instead of Rails'. But the context of my question is in Rails. There are a lot of prompt to user in our Rails app. I don't want to hard-code those prompt every where, since they will be change by the product team. Then I put all of them in a yml file and load the yml

[Rails] has_one :through doesn't work in Rails 2.2.2

2009-01-04 Thread Clive
I followed the steps in the following link literally in a new Rails 2.2.2 project http://ryandaigle.com/articles/2008/3/24/what-s-new-in-edge-rails-has-one-through Then I ran it in script/console, getting these error (actually I got same error in another big rails project before I read that link)