Issue.destroy_all\r
issues_map = {}\r
keep_bug_ids = (Issue.count == 0)\r
- MantisBug.find(:all, :order => 'id ASC').each do |bug|\r
+ MantisBug.find_each(:batch_size => 200) do |bug|\r
next unless projects_map[bug.project_id] && users_map[bug.reporter_id]\r
i = Issue.new :project_id => projects_map[bug.project_id], \r
:subject => encode(bug.summary),\r
# Tickets
print "Migrating tickets"
- TracTicket.find(:all, :order => 'id ASC').each do |ticket|
+ TracTicket.find_each(:batch_size => 200) do |ticket|
print '.'
STDOUT.flush
i = Issue.new :project => @target_project,