Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 212350

Summary: [prov] [ui] Opening the admin ui or the end user ui takes a long time
Product: [Eclipse Project] Equinox Reporter: Pascal Rapicault <pascal>
Component: IncubatorAssignee: equinox.incubator-inbox <equinox.incubator-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: john.arthorne, susan
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Pascal Rapicault CLA 2007-12-09 16:22:22 EST
M4 candidate
When an agent refers to a large remote repository (e.g http://download.eclipse.org/eclipse/testUpdates/), opening the admin ui or the end user ui on it takes a long time. 
I'm surprised because I thought we had fixed that by lazily loading the repos.
Comment 1 John Arthorne CLA 2007-12-10 09:01:54 EST
The repositories are lazily loaded, but the UI references them immediately when populating the repository views in the admin UI, and the "available features" pane in the end user UI. Just to clarify, when you say it takes a long time opening the end user UI, do you mean startup of the workbench takes a long time, or opening Help > Software Updates (Incubation) takes a long time?
Comment 2 Pascal Rapicault CLA 2007-12-10 09:38:56 EST
In the case of the admin ui, the workbench window takes a long time to show up. In the case of the user ui, it is the dialog that takes a long time.
Comment 3 John Arthorne CLA 2007-12-10 10:23:20 EST
Ok, that matches my expectations.
Comment 4 Susan McCourt CLA 2007-12-10 11:24:46 EST
The end user UI is not likely to get any better as is because we always show the content of repos (we don't make the user expand the repos).  Unless we want background access the repos at some point...

There is some improvement that could be done in the admin UI...holding onto URLs vs. metadata repo instances.  Last week I was waiting for an addRepository API before doing the cleanup and then didn't have time to get back to it.

Unless someone objects, I want to deal with this in M5 while also dealing with the ramifications of not being able to hold onto Profile instances.
Comment 5 John Arthorne CLA 2007-12-10 13:10:53 EST
> The end user UI is not likely to get any better as is because we always show
> the content of repos (we don't make the user expand the repos).

When I open the end user UI now, I don't see the repositories being expanded automatically. You do however need to load the repository currently in order to see the repo name, but that information can be obtained without loading the repository if needed (it's stored in preferences).
Comment 6 Susan McCourt CLA 2007-12-10 13:16:08 EST
The end user UI doesn't show the user repos in the "available features" list.  It just shows the categories.  It gets all categories from all repos up front, and to find all the categories it has to go through everything.  That's what I meant by "we always show the contents of everything".   So even if those categories are not open/expanded, it took a trip through all of the IUs of each repo just to assemble that top level list.

(If a repo has no categories, I name the "uncategorized" category with the repo name, otherwise we'd have a bunch of duplicate "uncategorized" categories).  That's probably what made you think you were looking at a list of repos.

Unfortunately, this performance is about to get worse in M4 due to bug #211521.  I will have to take several passes through each repo in order to collect all of the uncategorized elements.   I'll explain more fully in that bug...

Comment 7 John Arthorne CLA 2007-12-10 13:45:21 EST
Sorry, ignore comment #5... I was thinking of the admin UI.
Comment 8 Susan McCourt CLA 2008-01-15 15:25:31 EST
This was resolved already with background fetching of repo content

*** This bug has been marked as a duplicate of bug 212775 ***