Rails Rails 3.1.2 has been released

los · November 18, 2011 · Last by scott replied at March 30, 2012 · 5061 hits

我本机环境上测试 Rails 3.1.2 似乎 ActiveRecord 有问题,相当慢,随便都过两三百 ms,有谁测试过 Rails 3.1.2 了吗?

#1 楼 @Los 都等你啦,可以把测试方法和结果贴一下

我一会就试试

依然有 1.9.3 得 Warring 提示

Served asset /bootstrap-tabs.js - 304 Not Modified (3ms)
[2011-11-18 14:25:58] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true

warning 是 webrick 的问题。用 thin 就没了。 开发环境 ActiveRecord 很慢我这里都上千 ms..不过生产环境没有问题。

#5 楼 @hooopo 实在太慢了,似乎暂时也没人去提交 issues

#6 楼 @hooopo 用 Mongoid 没感觉

哦,可以用

$ rails s thin 

#4 楼 @huacnlee 依然有 1.9.3 得 Warring 提示

Served asset /bootstrap-tabs.js - 304 Not Modified (3ms) [2011-11-18 14:25:58] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true

这个问题你解决了吗?

#10 楼 @scott 在 Gemfile 里面加上 thin

gem "thin"

然后 rails s 启动就会用 thin 来跑,就不会有那个提示了。

You need to Sign in before reply, if you don't have an account, please Sign up first.