Forum: Ruby on Rails How do you execute arbitrary SQL with ActiveRecord?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cd8c9864d88bcafc164d8fdb820cc451?d=identicon&s=25 Chris Richards (chris)
on 2006-05-09 12:55
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
A90204c955db033cd975f7bb0ec9600b?d=identicon&s=25 Ashley Moran (Guest)
on 2006-05-09 13:05
(Received via mailing list)
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
> Chris

ActiveRecord::Base.connection.execute(â??...â?)

Ashley
This topic is locked and can not be replied to.