Long ass redirect with Ruby 1.9.1


#1

It took 4 seconds to get redirected to the show page. Is this a known
Ruby 1.9.1 or Rails 2.3.2 issue?

Processing SitesController#create (for 127.0.0.1 at 2009-03-30
16:48:04) [POST]
Parameters:
{“authenticity_token”=>“UHSYgtPzfTEAHAqsqTVYWzFOeM7bSh6mUkgvZFY96CQ=”,
“site”=>{“url”=>“local.test2”, “base_name”=>“test2”,
“human_name”=>“test2”}, “commit”=>“Create”}
Site Columns (0.8ms) SHOW FIELDS FROM sites
Site Load (0.1ms) SELECT * FROM sites WHERE (sites.base_name
= ‘azurrofashion’) LIMIT 1
SQL (0.1ms) BEGIN
Site Create (0.3ms) INSERT INTO sites (url, base_name,
human_name, created_at, updated_at) VALUES(‘local.test2’,
‘test2’, ‘test2’, ‘2009-03-30 08:48:04’, ‘2009-03-30 08:48:04’)
SQL (7.6ms) COMMIT
Redirected to http://local.azurrofashion/sites/7
################### CHECK OUT THE NEXT LINE ! ! !
####################
Completed in 4142ms (DB: 10) | 302 Found [http://local.azurrofashion/
sites]
SQL (0.1ms) SET NAMES ‘utf8’
SQL (0.1ms) SET SQL_AUTO_IS_NULL=0

BTW, I’m on Ubuntu 8.10, using MySQL (not in INNODB mode, only have a
few records ( less than 10 ), and I don’t think I have any crazy stuff
going on except that I’m using the ResourceController and HAML
plugins.

Does anybody know what’s going on?


#2

BTW, is there a way to find out what’s going on at that line that’s
taking a super long time with some kind of profiling software?


#3

I forgot to mention that I am using Phusion Passenger.


#4

Oh I think it’s cuz i"m calling a generator after the create method
executes…


#5

On Mon, Mar 30, 2009 at 2:26 AM, David B.
removed_email_address@domain.invalidwrote:

I forgot to mention that I am using Phusion Passenger.

What version of Phusion Passenger are you using?

-Conrad