OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
env var for aggregate journal migration batch size
ulferts13e418e34e84
diff --git a/db/migrate/20210615150558_aggregate_journals.rb b/db/migrate/20210615150558_aggregate_journals.rbindex b16e90ae020..1c6e90cb182 100644--- a/db/migrate/20210615150558_aggregate_journals.rb+++ b/db/migrate/20210615150558_aggregate_journals.rb@@ -25,7 +25,7 @@ class AggregateJournals < ActiveRecord::Migration[6.1]# The change is irreversible (aggregated journals cannot be broken down) but down will not cause database inconsistencies.def aggregate_journals(klass)- klass.in_batches do |instances|+ klass.in_batches(of: ENV["OPENPROJECT_MIGRATION_AGGREGATE_JOURNALS_BATCH_SIZE"]&.to_i || 1000) do |instances|# Instantiating is faster than calculating the aggregated journals multiple times.aggregated_journals = aggregated_journals_of(klass, instances).to_a