Added more output info of reload.

This commit is contained in:
Martin Edenhofer 2015-08-16 11:33:16 +02:00
parent eb84b39c32
commit 7dfb3bd642

View file

@ -44,7 +44,11 @@ namespace :searchindex do
puts 'reload data...' puts 'reload data...'
Models.searchable.each {|model_class| Models.searchable.each {|model_class|
puts " reload #{model_class}" puts " reload #{model_class}"
started_at = Time.zone.now
puts " - started at #{started_at}"
model_class.search_index_reload model_class.search_index_reload
took = Time.zone.now - started_at
puts " - took #{took.to_i} seconds"
} }
end end