kubitron / redmine_git_hosting

A ChiliProject/Redmine plugin which makes configuring your own git hosting easy.
78 stars 15 forks source link

MoveNotifiedCiaToGitCiaNotifications migration can take quite a long time #95

Open lostar opened 11 years ago

lostar commented 11 years ago

2011081700000_move_notified_cia_to_git_cia_notifications.rb#L16

Changeset loop can take quite a long time (still in progress =) for 166 projects with total ~200-300K records in changesets.

More important that in our case it doesn't make any sense because all changesets have notified_cia = 0. Is it possible to refine Projec.find(:all) query for such situations? Any idea?

Of course, the progress information (console output) while migration is going on will be very helpful =)

p.s. Yeah, as temporary solution I'm going to comment this part of migration...

kubitron commented 11 years ago

Sorry for taking so long to get back to you.

Changesets take a long time for many reasons -- mostly that is a Redmine problem. Did commenting out that line help?