[Rails-core] Re: Avoiding clone in AR::Base#attributes

2008-02-08 Thread Michael Koziarski
> Anyone have any objections to this new behaviour? I've applied the patch to edge, so if you notice any breakage shout out in this thread. -- Cheers Koz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on

[Rails-core] Re: Avoiding clone in AR::Base#attributes

2008-02-08 Thread Michael Koziarski
> Hi, > I've changed the ActiveRecord::Base#attributes method to avoid cloning of > objects and increase apps performance. > Here is the patch: http://dev.rubyonrails.org/ticket/11047 > This sure speeds up the method avoiding Kernel#clone calls, but I don't > know if there is any special case whe

[Rails-core] [CruiseControl] RubyOnRails build 8823 fixed

2008-02-08 Thread alexey . verkhovsky
The build has been fixed. CHANGES --- Revision 8823 committed by marcel on 2008-02-08 22:33:17 Ooops. Add fixture partials for last commit A /trunk/actionpack/test/fixtures/customers/_customer.html.erb A /trunk/actionpack/test/fixtures/topics A /trunk/actionpack/test/fixtures/customers

[Rails-core] Re: Random in ActiveRecord

2008-02-08 Thread Mislav Marohnić
Nuno, I support this in a form of a plugin. It is definitely useful. But, because of various approaches needed because of different databases (and a lot of people disagreeing which selects are optimized), I don't think it will ever be fit for core (as Koz suggests). For tables that are have less r

[Rails-core] Re: Random in ActiveRecord

2008-02-08 Thread Jarkko Laine
On 9.2.2008, at 0.37, Nuno Job wrote: One of the comments in my blog suggested a way to improve the performance in mysql (http://jan.kneschke.de/projects/mysql/order-by- rand/). I guess that there are other tweaks for other database systems (like db2, oracle, postgre, sqlite). So in the core

[Rails-core] Re: Random in ActiveRecord

2008-02-08 Thread Nuno Job
One of the comments in my blog suggested a way to improve the performance in mysql (http://jan.kneschke.de/projects/mysql/order-by- rand/). I guess that there are other tweaks for other database systems (like db2, oracle, postgre, sqlite). So in the core we could have the tweaked fast versions of

[Rails-core] [CruiseControl] RubyOnRails build 8822 failed

2008-02-08 Thread alexey . verkhovsky
The build failed. CHANGES --- Revision 8822 committed by marcel on 2008-02-08 22:04:06 Fix problem with render :partial collections, records, and locals. #11057 [lotswholetime] M /trunk/actionpack/CHANGELOG M /trunk/actionpack/test/activerecord/render_partial_with_record_identification_

[Rails-core] Re: Random in ActiveRecord

2008-02-08 Thread Michael Koziarski
> The next step seemed to be suggesting a patch to rails core. However > I'm still a rails rookie and don't have that necessary knowledge to > understand all of that code. Can you tell me if this is already on > rails core? Can someone add it please. It seems rather easy. The problem with this is

[Rails-core] Random in ActiveRecord

2008-02-08 Thread Nuno Job
I was trying to make a Quote model that could feed my webapp with random quotes. I posted about this at http://nunojob.wordpress.com/2008/02/08/random-in-ruby-on-rails After creating the model i entered ./script/console and tried >> Quote.find(:random) This didn't work so I looked for another

[Rails-core] [PATCH] render :partial bugs

2008-02-08 Thread Mark Van Holstyn
I just created a patch to fix a couple issues with render :partial. I would appreciate it if you could take time to review it and add your +1's. http://dev.rubyonrails.org/ticket/11057 Thanks, -- Mark Van Holstyn, Partner / Software Developer [EMAIL PROTECTED], (616) 706-6842 Mutually Human Soft

[Rails-core] Debugging ActiveRecord Tests

2008-02-08 Thread [EMAIL PROTECTED]
Hi, I am trying to debug the test suite for active record against SQLAnywhere, prefferably in 3rdRail. I cannot seem to get a test to run in it, as every time i try I get base_test.rb [Ruby Script] c:/ruby/bin/ruby.exe and nothing elseanyone know how I can go about doing this with 3rd Rails

[Rails-core] Avoiding clone in AR::Base#attributes

2008-02-08 Thread Juanjo Bazán
Hi, I've changed the ActiveRecord::Base#attributes method to avoid cloning of objects and increase apps performance. Here is the patch: http://dev.rubyonrails.org/ticket/11047 This sure speeds up the method avoiding Kernel#clone calls, but I don't know if there is any special case where not cloning

[Rails-core] Re: [CruiseControl] RubyOnRails build 8820 fixed

2008-02-08 Thread Chad Woolley
On Feb 7, 2008 5:20 PM, Alexey Verkhovsky <[EMAIL PROTECTED]> wrote: > > On Feb 7, 2008 4:31 PM, <[EMAIL PROTECTED]> wrote: > > The build has been fixed. > > Yay! > +1 :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro