-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
streamline parents lookup per run. #463
Conversation
# Conflicts: # app/models/bulkrax/importer_run.rb # app/models/concerns/bulkrax/import_behavior.rb # db/migrate/20220301020307_add_parents_to_bulkrax_importer_runs.rb
@@ -5,6 +5,8 @@ class ImporterRun < ApplicationRecord | |||
belongs_to :importer | |||
has_many :statuses, as: :runnable, dependent: :destroy | |||
|
|||
serialize :parents, Array | |||
def parents |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this get called now with importer.last_run.parents
in the schedule relationships job?
@@ -5,6 +5,8 @@ class ImporterRun < ApplicationRecord | |||
belongs_to :importer | |||
has_many :statuses, as: :runnable, dependent: :destroy | |||
|
|||
serialize :parents, Array | |||
def parents |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this get called now with importer.last_run.parents
in the schedule relationships job?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes; that is the idea at least.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is working for me locally in louisville
remove database column for parents and just use relationships look up each time.