Project

General

Profile

Actions

bug #9423

open

Improve language handling for TermType.getMessage() and others

Added by Andreas Müller about 3 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Highest
Assignee:
Category:
taxeditor
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Severity:
critical
Found in Version:

Description

TermType.getMessage() is often used when creating menus but also in other context. It internally calls TermType.getMessage(Language) which requires loading of the default language term. For some reason this seems to be done always with a server call which is very expensive and slows down menu (and others) loading a lot. The reason for the WS call is probably that the menu is not session related and therefore no caching is used as permanent/term cache still requires a session context in taxeditor.

In a first step we could try to use permanent cache also outside session context.

Another step would be to use locales instead of CDM Language as TermType.getMessage(Language) is only used for UI language which will always be en, de or may es or other very popular Locale. So no reason to use CDM Language here.
But even in CDM which could use Locale at mucht more places, e.g. for representations and multi-language texts. Only for CommonTaxonName it seems to be a real requirement as CommonTaxonName sometimes uses very exceptional CommonNames which do not have a locale yet as they are even not in the ISO for the known >7000 langauges.


Related issues

Related to EDIT - bug #9422: Improve performance during Preferences startupClosedKatja Luther

Actions
Actions #1

Updated by Andreas Müller about 3 years ago

  • Priority changed from New to Highest
Actions #2

Updated by Andreas Müller about 3 years ago

  • Related to bug #9422: Improve performance during Preferences startup added
Actions #3

Updated by Andreas Müller about 3 years ago

  • Target version changed from Release 5.21 to Release 5.22
Actions #4

Updated by Katja Luther almost 3 years ago

  • Target version changed from Release 5.22 to Release 5.45
Actions

Also available in: Atom PDF