Added more output info of reload.
This commit is contained in:
parent
eb84b39c32
commit
7dfb3bd642
1 changed files with 4 additions and 0 deletions
|
@ -44,7 +44,11 @@ namespace :searchindex do
|
|||
puts 'reload data...'
|
||||
Models.searchable.each {|model_class|
|
||||
puts " reload #{model_class}"
|
||||
started_at = Time.zone.now
|
||||
puts " - started at #{started_at}"
|
||||
model_class.search_index_reload
|
||||
took = Time.zone.now - started_at
|
||||
puts " - took #{took.to_i} seconds"
|
||||
}
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue