why is languageManager.getAll() used and not languageManager.getAllActive()?
This process seems to take quite some time (20 minutes for our test installation with a limited amount of data), so only caching the active languages (in our installation, we only have two active languages) could help to speed it up? Avoid unnecessary queries to the database?
In the following code:
https://github.com/ec-jrc/re3gistry/blob/79f806053066cfa1fb1636ce34b64912004ccb32/sources/Re3gistry2RestAPI/src/main/java/eu/europa/ec/re3gistry2/restapi/CacheAllServlet.java#L69-L86
why is
languageManager.getAll()
used and notlanguageManager.getAllActive()
?This process seems to take quite some time (20 minutes for our test installation with a limited amount of data), so only caching the active languages (in our installation, we only have two active languages) could help to speed it up? Avoid unnecessary queries to the database?