private void persistUnManagedVolumes(List<UnManagedVolume> unManagedVolumesToCreate,List<UnManagedVolume> unManagedVolumesToUpdate,boolean flush){
  if (null != unManagedVolumesToCreate) {
    if (flush || (unManagedVolumesToCreate.size() >= BATCH_SIZE)) {
      _partitionManager.insertInBatches(unManagedVolumesToCreate,BATCH_SIZE,_dbClient,UNMANAGED_VOLUME);
      unManagedVolumesToCreate.clear();
    }
  }
  if (null != unManagedVolumesToUpdate) {
    if (flush || (unManagedVolumesToUpdate.size() >= BATCH_SIZE)) {
      _partitionManager.updateAndReIndexInBatches(unManagedVolumesToUpdate,BATCH_SIZE,_dbClient,UNMANAGED_VOLUME);
      unManagedVolumesToUpdate.clear();
    }
  }
}

private void persistUnManagedVolumes ( List < UnManagedVolume > unManagedVolumesToCreate , List < UnManagedVolume > unManagedVolumesToUpdate , boolean flush ) { if ( null != unManagedVolumesToCreate ) { if ( flush || ( unManagedVolumesToCreate . size ( ) >= BATCH_SIZE ) ) { _partitionManager . insertInBatches ( unManagedVolumesToCreate , BATCH_SIZE , _dbClient , UNMANAGED_VOLUME ) ; unManagedVolumesToCreate . clear ( ) ; } } if ( null != unManagedVolumesToUpdate ) { if ( flush || ( unManagedVolumesToUpdate . size ( ) >= BATCH_SIZE ) ) { _partitionManager . updateAndReIndexInBatches ( unManagedVolumesToUpdate , BATCH_SIZE , _dbClient , UNMANAGED_VOLUME ) ; unManagedVolumesToUpdate . clear ( ) ; } } }
used to determine the value of the is_ingestable flag .
