Skip to content
This repository has been archived by the owner on Nov 26, 2019. It is now read-only.

Commit

Permalink
reindex task, time how long fetching all fedora URIs takes
Browse files Browse the repository at this point in the history
  • Loading branch information
jrochkind committed Mar 28, 2017
1 parent 617f928 commit 25fb93e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/chf/indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ module CHF
# but not yet released.
class Indexer
def reindex_everything(batch_size: 50, softCommit: true, progress_bar: false, final_commit: false)
$stderr.puts "fetching all URIs from fedora at #{Time.zone.now}, might take 20+ minutes?..."
s_time = Time.zone.now
$stderr.puts "fetching all URIs from fedora at #{s_time}, might take 20+ minutes?..."
descendants = descendant_uris(ActiveFedora.fedora.base_uri)
descendants.shift # Discard the root uri
$stderr.puts "fetched all URIs from fedora in: #{(Time.mktime(0)+(Time.zone.now - s_time)).strftime("%H:%M:%S")}"


batch = []

Expand Down

0 comments on commit 25fb93e

Please sign in to comment.