Miles Egan
Not a member
Miles Egan's latest activity
Tuesday, July 13 2010
-
Miles Egan commented at 5:32 AMTried this on a slightly more formal benchmark, with a test script like this:
10.times do 1000.times{ Post.create(:title => "bla", :body => "x" * 1000) } m...
-
Miles Egan commented at 4:24 AMdrjoke - I'm not seeing a similar performance difference on my Ubuntu laptop with postgresql. Rails 3 seems about 20% slower here. What hardware and db engine a...
-
Miles Egan commented at 3:18 AMI think this is actually an Arel thing. If you look at the code for the ordering clause in arel. Specifically, if you look at
lib/arel/engines/sql/formatters.rb...
Sunday, July 11 2010
-
Miles Egan commented at 8:29 PMSorry about the bad formatting there. Still getting used to this forum. I should add that I'm testing on a Ubuntu machine, so that might account for the differe...
-
Miles Egan commented at 8:28 PMI just tried loading a new Rails 3 app with your gemfile and creating a test class with this definition:
class CreateTestObjects < ActiveRecord::Migration
def s... -
Miles Egan commented at 6:53 PMIt's hard to debug this without a little more information. What command are you running to generate this error? Can you share the portion of the schema that thi...
-
Miles Egan commented at 6:45 PMIt looks to me like this is still an issue in master. I've attached a patch that fixes this and adds a test case.
-
Miles Egan commented at 3:01 AMHere's an alternative solution, if you think it's reasonable to assert that request_parameters and query_parameters should never be nil.
Saturday, July 10 2010
-
Miles Egan commented at 10:32 PMOk I've followed the instructions on that page and added a test case that triggers the error and verifies that it's handled correctly. Please let me know if thi...
-
Miles Egan commented at 8:49 PMThis patch doesn't discard the error, it just allows rails to display the error to the client instead of issuing a 500.
The code accessing query_parameters is u...