Skip to content

Commit

Permalink
adds some logging to update step
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Oct 26, 2023
1 parent 41120a3 commit ceefadd
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions lib/authority_browse/names.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,18 @@ def reset_db(loc_file_getter = lambda { fetch_skos_file })
# :names_from_biblio
def update
TermFetcher.new.run
DBMutator::Names.zero_out_counts
DBMutator::Names.update_names_with_counts
DBMutator::Names.add_ids_to_names_from_biblio
S.logger.info "Start: zeroing out counts"
S.logger.measure_info("Zeroed out counts") do
DBMutator::Names.zero_out_counts
end
S.logger.info "Start: update names with counts"
S.logger.measure_info("updated names with counts") do
DBMutator::Names.update_names_with_counts
end
S.logger.info "Start: add ids to names_from_biblio"
S.logger.measure_info("Updated ids in names_from_biblio") do
DBMutator::Names.add_ids_to_names_from_biblio
end
end

# Loads solr with documents of names that match data from library of
Expand Down

0 comments on commit ceefadd

Please sign in to comment.