Chris Richards
2006-May-09 10:55 UTC
[Rails] How do you execute arbitrary SQL with ActiveRecord?
How do you execute arbitrary SQL with ActiveRecord? I need to insert 40,000+ records, and the usual way is way too slow. I''m using Oracle Thanks Chris -- Posted via http://www.ruby-forum.com/.
Ashley Moran
2006-May-09 11:02 UTC
[Rails] How do you execute arbitrary SQL with ActiveRecord?
On Tuesday 09 May 2006 11:55, you wrote:> How do you execute arbitrary SQL with ActiveRecord? > > I need to insert 40,000+ records, and the usual way is way too slow. > I''m using Oracle > > Thanks > ChrisActiveRecord::Base.connection.execute(?...?) Ashley -- "If you do it the stupid way, you will have to do it again" - Gregory Chudnovsky