Project

General

Profile

« Previous | Next » 

Revision b19e5a61

Added by Katja Luther almost 12 years ago

View differences:

cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiDescriptionExport.java
205 205

  
206 206
			logger.info("Fetched " + list.size() + " " + pluralString + ". Exporting...");
207 207
			
208
			if (partitionCount % 10 == 0){
209
				logger.warn("Start snapshot, beginning of loop, fetched " + list.size() + " " + pluralString);
208
			logger.warn("Start snapshot, beginning of loop, fetched " + list.size() + " " + pluralString);
210 209
				ProfilerController.memorySnapshot();
211
			}
210
			
212 211
			for (Taxon taxon : list) {
213 212
				countTaxa++;
214 213
				doCount(count++, modCount, pluralString);
......
225 224
			// Start transaction
226 225
			txStatus = startTransaction(true);
227 226
			logger.info("Started new transaction. Fetching some " + pluralString + " (max: " + limit + ") for description import ...");
228
					
227
			logger.warn("Start snapshot, end of loop, fetched " + " " + pluralString);
228
			ProfilerController.memorySnapshot();	
229 229
		}
230 230
		
231 231
//		//name descriptions
......
642 642
		if (descriptionElement.isInstanceOf(CommonTaxonName.class)) {
643 643
			CommonTaxonName commonTaxonName = CdmBase.deproxy(descriptionElement, CommonTaxonName.class);
644 644
			language = commonTaxonName.getLanguage();
645
			commonTaxonName = null;
645 646
		} else if (descriptionElement.isInstanceOf(TextData.class)) {
646 647
			TextData textData = CdmBase.deproxy(descriptionElement, TextData.class);
647 648
			multilanguageText = textData.getMultilanguageText();
649
			textData = null;
648 650
		} else if (descriptionElement.isInstanceOf(IndividualsAssociation.class)) {
649 651
			IndividualsAssociation individualsAssociation = CdmBase.deproxy(descriptionElement, IndividualsAssociation.class);
650 652
			multilanguageText = individualsAssociation.getDescription();
653
			individualsAssociation = null;
651 654
		} else if (descriptionElement.isInstanceOf(TaxonInteraction.class)) {
652 655
			TaxonInteraction taxonInteraction = CdmBase.deproxy(descriptionElement, TaxonInteraction.class);
653 656
			multilanguageText = taxonInteraction.getDescriptions();
657
			taxonInteraction = null;
654 658
		} else {
655 659
			logger.debug("Given descriptionElement does not support languages. Hence LanguageCache could not be determined: " + descriptionElement.getUuid());
656 660
		}
......
730 734
		IdentifiableEntity<?> taxon = state.getCurrentTaxon();
731 735
		TaxonBase<?> taxonDeproxy = CdmBase.deproxy(taxon, TaxonBase.class);
732 736
		TaxonNameBase<?,?> taxonName = taxonDeproxy.getName();
737
		taxonDeproxy = null;
733 738
		NonViralName<?> nvn = CdmBase.deproxy(taxonName, NonViralName.class);
734 739
		String result = getCacheStrategy(nvn).getTitleCache(nvn);
735
		
740
		nvn = null;
736 741
		return result;
737 742
	}
738 743

  

Also available in: Unified diff