How to reduce ratio of user time to sys time for Rails 3 commands in Linux -


I am currently running Rail 3 on Ubuntu Linux and I'm finding that for really simple orders, For example, if I call DB: leave the rollback in a small table of 4 columns and 0 rows 30 seconds.

======================================== === - Drop_Table ((results) - & gt; 0.0013s ==CreateRefault: returned (0.0014 s) ===================================== == == Real 0m27.946 user 0m 26.570 ss 0 m1s 8484 s

Users' time has a high ratio in session time bothering me. Is it diagnosed or troubleshooting away?

Any help would be most appreciated

Thanks! Paul

You will not really be able to change this much, it is a powerful language for an interpreted language and web development. The result of using flexible structure is the result.

When you run the command, the Ruby interpreter has to be loaded with a rail environment and before you can rollback it is similar to starting the rail server and then rollback.

It can be painful while building, but it also has advantages. In order to make the right decision to execute migration, your migration may include logic using sections from your app. Long term maintenance is much better here.

In addition, DB models usually do not change often, power is super important at super super speed

Comments