app/models/harvest_event/collection_manager.rb
# TODO: something in this process is slow. Figure out what it is and speed
# it up!
something in this process is slow. Figure out what it is and speed
it up!
something in this process is slow . Figure out what it is and speed it up!
def sync
      EOL.log("HarvestEvent::CollectionManager.sync ("\
        "http://eol.org/collections/#{collection.id})")
      update_attributes
      add_user_to_collection
      remove_collection_items_not_in_harvest
      index_collection_items_added do
        add_items_to_collection
      end
      EOL::Solr::CollectionItemsCoreRebuilder.reindex_collection(collection, resource: true)
      EOL.log_return
    end
def sync EOL . log ( "HarvestEvent::CollectionManager.sync (" "http://eol.org/collections/#{collection.id})" ) update_attributes add_user_to_collection remove_collection_items_not_in_harvest index_collection_items_added do add_items_to_collection end EOL :: Solr :: CollectionItemsCoreRebuilder . reindex_collection ( collection , resource : true ) EOL . log_return end
TODO: something in this process is slow.
TODO : something in this process is slow .