← Back to team overview

dhis2-devs team mailing list archive

[Bug 712976] [NEW] i18n db performance

 

Public bug reported:

In my opinion there is a serious flaw in the i18n database solution. We
are currently populating the translations table for the default locale
which is defined by the LocaleManager and corresponds to the locale of
the contents entered into the "main" database tables. During runtime all
objects/collections are translated in the service layer before handed
over to the view, even if we are running with "default locale". This
operation is using precious milliseconds and is unnecessary. The
I18nService should simply shortcut the translation routine if default
locale is detected, and the startup population of the translations
should be removed.

** Affects: dhis2
     Importance: Undecided
     Assignee: Lars Helge Øverland (larshelge)
         Status: New

** Changed in: dhis2
    Milestone: None => 2.2

** Changed in: dhis2
     Assignee: (unassigned) => Lars Helge Øverland (larshelge)

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/712976

Title:
  i18n db performance

Status in DHIS 2 - District Health Information Software:
  New

Bug description:
  In my opinion there is a serious flaw in the i18n database solution.
  We are currently populating the translations table for the default
  locale which is defined by the LocaleManager and corresponds to the
  locale of the contents entered into the "main" database tables. During
  runtime all objects/collections are translated in the service layer
  before handed over to the view, even if we are running with "default
  locale". This operation is using precious milliseconds and is
  unnecessary. The I18nService should simply shortcut the translation
  routine if default locale is detected, and the startup population of
  the translations should be removed.





Follow ups

References