Ruby on Rails Friday, April 5, 2013

Depends on what you're trying to test.

If it's a single table and the values in the database don't matter, you can just add a [0..10000].each loop in seed.rb

Or copy production data

Or use a sql script to load your database


On Fri, Apr 5, 2013 at 11:08 AM, haxuan lac <lists@ruby-forum.com> wrote:
I want to test performance of project.
So i want make 10000 record of table for testing.
I don't know how to ganerate record.
Who can help me? Thanks.



--
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@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment