Bug 744114

Summary: Project Page is slow to load when multiple languages are enabled.
Product: [Retired] Zanata Reporter: Carlos Munoz <camunoz>
Component: Component-UI, PerformanceAssignee: Runa Bhattacharjee <runab>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.4CC: ankit, zanata-bugs
Target Milestone: ---   
Target Release: 1.4.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-28 07:25:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Carlos Munoz 2011-10-07 05:26:35 UTC
Description of problem:
The project page loads rather slowly when multiple languages are enabled for the project and the user.


How reproducible:
Reproducible every time.


Steps to Reproduce:
1. Log in as a user that belongs to multiple language teams.
2. Go to the Projects' tab.
3. Select a project with multiple languages enabled.
  
Actual results:
The project pages takes +5 seconds to load when the number of languages is large enough (20+).

Comment 1 Carlos Munoz 2011-10-07 06:37:35 UTC
Added a Seam interceptor class that will cache bean method return values for a given scope.The project page should use this new feature to stop fetching the same data multiple times in the same page (in this case project). The project page should now load much faster even with multiple languages enabled.

Comment 2 Ding-Yi Chen 2011-10-10 01:59:30 UTC
Verified with Zanata version 1.4.2-SNAPSHOT (20111007-1636)