Miles Egan
Not a member
Miles Egan's latest activity
Sunday, July 18 2010
-
-
Miles Egan commented at 4:35 PMAll that our normalize_parameters function does is recursively convert the params hash to a hash_with_indifferent_access, so it doesn't seem to me that it reall...
-
Miles Egan commented at 3:41 PMJosé here is the chain of events as I see it:
- rails tries to handle the request, which triggers the param
parsing code in rack
- rack fails to parse the query st...
- rails tries to handle the request, which triggers the param
parsing code in rack
Friday, July 16 2010
-
- Importance changed from to Low
This seems to be a result of this definition in lib/action_view/form_helper.rb:
def value_before_type_cast(object, method_name) unless object...
Wednesday, July 14 2010
-
Miles Egan commented at 4:57 AMRohit I've attached two traces from ruby-prof on this benchmark, prof2.txt for rails2 and prof3.txt for rails 3. I'm no expert at ruby profiling either but the ...
-
Miles Egan commented at 4:23 AMJohn - good catch. I guess I chose a bad default value for my test data that masked the behavior of the where() method. Those low times meant that no queries we...
-
Miles Egan commented at 1:15 AMDaniel - if you look at the benchmark code I posted I access an attribute(name, in this case) of each instance returned by where() and use it to calculate a run...
Tuesday, July 13 2010
-
Miles Egan commented at 10:18 PMI just noticed that this page:
http://wiki.rubyonrails.org/rails/pages/reservedwordsWhich advises against using any sql reserved words for column names. So, I ...
-
Miles Egan commented at 10:10 PMFollowing up on this, I created a test set of data like this:
>> 5000.times { User.create(:name => "name") }And a simple benchmark script like this:
count =... -
Miles Egan commented at 9:37 PMdrjoke - I think the number we're interested in here is the last (real time) of the benchmark measure results, right?