Pete Yandell
Not a member
Pete Yandell's latest activity
Monday, June 22 2009
2724
Duplicate joins when combining scopes and includes with dots in parameters
was updated
in Ruby on Rails
-
Pete Yandell commented at 4:03 AMA minimal test is attached, based on a production app in which I'm seeing this issue.
The guts of it is this:
# This succeeds. publisher.subscribers.tagged_wit... -
Pete Yandell commented at 3:36 AMI'm seeing a similar error. I'm trying to come up with a minimal test to reproduce.
Thursday, May 07 2009
2615
OrderedHash.[] constructs a broken hash
was created
in Ruby on Rails
-
Pete Yandell created the ticket at 8:53 AM>> Hash[1, 2, 3, 4] => {1=>2, 3=>4} >> Hash[1, 2, 3, 4].keys => [1, 3] >> ActiveSupport::OrderedHash[1, 2, 3, 4] => #<OrderedHash {1=>2, 3=>4}> >> Active...
Tuesday, December 09 2008
1352
Enumerable#group_by is O(n^2)
was updated
in Ruby on Rails
-
Pete Yandell commented at 6:00 AMHi Frederick. Thanks for picking this up!
Try it with more groups, by bumping up the i % 13 in your test code to a bigger value.
For i % 130:
current implementa...
Tuesday, November 11 2008
1352
Enumerable#group_by is O(n^2)
was created
in Ruby on Rails
-
Pete Yandell created the ticket at 3:39 AMEnumerable#group_by is O(n^2) in Rails 2.1 and up, making it extremely slow for big data sets.
Some quick tests show that group_by in Rails 2.1 takes 90 times a...