task #3336
Updated by Andreas Müller about 2 years ago
## very slow pages and calls:
* Taxon - Synonymy
* Cichorieae - Scorzonera: http://localhost/d7/cichorieae/cdm_dataportal/taxon/c1e8a3f2-2b65-4aad-ad25-1cf9df92e290/synonymy (fetching time on 9.4.2014 = 16.117s) --> a lot loading of
* name/{uuid}/annotations
* taxon/{uuid}/annotations
* portal/name/{uuid}/typeDesignations
* taxon and name relationsships
* portal/taxon/c1e8a3f2-2b65-4aad-ad25-1cf9df92e290/media?type=ImageFile&relationships=&relationshipsInvers=&includeTaxonDescriptions=1&includeOccurrences=&includeTaxonNameDescriptions= see #4179 (improve performance of portal/taxon/{uuid}/media)
* portal/taxon/c1e8a3f2-2b65-4aad-ad25-1cf9df92e290/nameTypeDesignations
* Cactaceae - Melocactus macracanthos (131 synonyms) http://caryophyllales.org/cactaceae/cdm_dataportal/taxon/67c8aaf2-75da-4f19-b1c4-36fb5d26aa85 (fetching time on 3.12.2020 = 40.616s)
* Cactaceae - Aylostera pygmaea (239 synonyms) http://caryophyllales.org/cactaceae/cdm_dataportal/taxon/f065da20-d6a9-44bb-93fc-02cf14fa4490 (fetching time on 3.12.2020 = 101.79s)
* Cactaceae - Aylostera deminuta (127 synonyms) http://caryophyllales.org/cactaceae/cdm_dataportal/taxon/187ce4a2-5a2c-484b-8fc8-23ae2526738d (fetching time on 3.12.2020 = 52.752s)
* Cichorieae - Lactuca serriola http://wp6-cichorieae.e-taxonomy.eu/portal/cdm_dataportal/taxon/85176c77-e4b6-4899-a08b-e257ab09350a/ (fetching time on 09.04.2014 = 6.872s at localhost(a.kohlbecker), on edit-production 64.573s **TODO**: compare again after release of cdm 3.3.2]]
* Ants search for Anochetus : http://dev.e-taxonomy.eu/dataportal/antsPilot/cdm_dataportal/search/results/taxon?ws=portal%2Ftaxon%2Ffind&query=Anochetus&form_build_id=form-mCBEphYoh1T9b66H-tUYY4S10c3pNsQsjvA7707_rIU&form_token=jXCJAmsqNf8kSazGtjAc-GpbhXMydYnwkK5Vk7t5dUE&form_id=cdm_dataportal_search_taxon_form&search[[doTaxaByCommonNames]=1&search[doMisappliedNames]=1&search[doSynonyms]=1&search[doTaxa]=1&search[pageNumber]=0&search[pageSize]=25|[9.4.2014; 45.434s fetch time]]
* doGetSubtreeMedia() GET: /portal/taxon/886c6363-a4ea-4e3c-9501-1d24f3fb0aff/subtree/media?type=ImageFile&relationships=&relationshipsInvers=&includeTaxonDescriptions=1&includeOccurrences=&includeTaxonNameDescriptions=
## Tickets
* #3348 (should annotations always be returned for cdm instances? [DISCUSS])
* #1985 (Very large taxa can not be handled by the Editor)
* #8274 (Very large taxa (synonymies) can not be handled by the dataportal)
* #4179 (improve performance of portal/taxon/{uuid}/media)
* #1453 (improve overall performance of cdm-server, cdmlib-remote and thus of dataportals)
* #3489 (dataportal must not always load all descriptionelements for the general tab)
* #3932 (wrong media urls in html cause multiple page loads)
* #3825 (E+M Portal Performance issues)
* #3438 (on first startup the cichorieae portal takes a very long time to load)
* #3991 (modify TaggedTitle class: remove the 10 boolean fields)
* #4112 (portal/taxon/{uuid}/accepted/{uuid} takes extremely much time in specific cases)
## Debug Tools
* cdm debug block
* CDM page debug mode: When CDM page debug mode enabled the start and end of cdm entity page creation is logged as well as any http request send via the cdm_api. The log is written to a file in the temporary folder configured in the File system settings. The log is written by the drupal devel module function dd(). r19752
## Links regarding performance optimization
* mod_pagespeed for Apache: http://www.heise.de/newsticker/meldung/Google-will-das-Web-schneller-machen-1727471.html
* from Googles "make the web faster" https://developers.google.com/speed/pagespeed/
* Varnish http accelerator: https://www.varnish-cache.org/