geonetwork / core-geonetwork

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.
http://geonetwork-opensource.org/
GNU General Public License v2.0
430 stars 489 forks source link

Harvester / Remove records by harvester UUID #8431

Open fxprunayre opened 1 month ago

fxprunayre commented 1 month ago

When harvester contains lot of records, remove records take a while or could even return heapspace errors.

Try to improve performances by using delete by query (instead of loop on each records) eg. 1500 records

This will bypass events but maybe that is fine for harvested records?

Maybe there is better JPA alternative for this kind of query?

Checklist

Funded by Ifremer

sonarcloud[bot] commented 1 month ago

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

fxprunayre commented 1 month ago
  1. Metadata harvested with the GeoNetwork ‘protocol’ in MEF format, may store files in the data directory. In this case, the files should be deleted also.

Indeed, also harvesting WMS most of the time produce thumbnails in the datadir.