-
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
Changes from all commits
5b3db36
818756d
ad37121
de95964
d3582c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. does this get called now with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes; that is the idea at least. |
||
PendingRelationship.where(bulkrax_importer_run_id: id).pluck(:parent_id).uniq | ||
end | ||
end | ||
end |
This file was deleted.
This file was deleted.
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?