I tried create 10000 pseudo by Faker but it''s very slow. I fake 1000 record about 20 minutes. And 10000 record take me 2-3 hours. please give me some advice about this time I had done with fake pseudo data(1000 and 10000 pseudo). Thanks.............. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Colin Law
2013-Apr-06 08:20 UTC
Re: Re: How to create 10000 pseudo data for Testing in RoR
On 6 April 2013 03:18, haxuan lac <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I tried create 10000 pseudo by Faker but it''s very slow. > I fake 1000 record about 20 minutes. > And 10000 record take me 2-3 hours. > please give me some advice about this time I had done with fake pseudo > data(1000 and 10000 pseudo).I think it has been suggested several times that you use rake db:seed with seed.rb. Have you investigated that route? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
tamouse mailing lists
2013-Apr-06 09:25 UTC
Re: Re: How to create 10000 pseudo data for Testing in RoR
On Apr 5, 2013 9:18 PM, "haxuan lac" <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> > I tried create 10000 pseudo by Faker but it''s very slow. > I fake 1000 record about 20 minutes. > And 10000 record take me 2-3 hours. > please give me some advice about this time I had done with fake pseudo > data(1000 and 10000 pseudo). > Thanks..............anytime you use the ORM to insert 10_000 records it''s going to be slow as it does them one at a time. i suggest gong the direct sql route in this case. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.