New issue
Advanced search Search tips
Starred by 3 users

Issue metadata

Status: Submitted
Closed: Feb 8

Sign in to add a comment

Issue 10380: Utilize project index to render change list on GWT UI

Reported by, Jan 24 Project Member

Issue description

Affected Version: 2.16

Secondary index is much faster and consume much less resources
and thus should be used to render change list screen, like it is
currently the case on PG UI (on both 2.16 and master).



Comment 1 by, Jan 24

Project Member
Just tested on right now:

(Projects with Lucene index) => 0.502 seconds
time curl ''

(Projects with stream-based listing) => 0.416 seconds
time curl ''

Actually, it seems that the list with the fixed stream-based navigation of the projects is slightly faster than the Lucene-based implementation.

I do not believe this is an issue anymore in v2.16

Comment 2 by, Jan 25

Project Member
Status: WontFix (was: New)
Setting to WontFix as for Luca's comment.

Comment 3 by, Jan 27

Project Member
I checked also the memory allocation and it is not an issue when limits are specified.
When listing without limits, both query (Lucene-based) and list (Stream-based) are causing again JVM heap explosion.

That is a different issue though because query results are limited (by default to 500 entries) while listing are unlimited (by default returns *all entries*).

Raising a follow-up issue to introduce a limit on the listing.

Comment 4 by, Jan 27

Project Member
Yes, enforcing limit on listing make sense.

Comment 5 by, Jan 27

Project Member
Created a followup  Issue 10390  on the introduction of a listLimit range global capability

Comment 6 by, Jan 31

Project Member
Status: Accepted (was: WontFix)
I have been talking face-to-face with Patrick and, actually, there is a different use-case where the Lucene implementation is superior: "give me the 100th page"

With the current list implementation, it will blow your JVM heap, with Lucene, it won't.

Comment 7 by, Jan 31

Project Member

Comment 8 by, Jan 31

Project Member
While the GWT UI is going away, there is the same problem in other places, like the GerritApi and the SSH commands.

Rather than chaning the GWT UI, we can use the Lucene index inside the ListProjects and get the benefits on GWT, GerritApi and SSH commands in one go.

The fix on GWT UI would benefit only 2.16, the fix on the ListProjects would benefit 2.16 and master also.

Comment 9 Deleted

Comment 10 by, Feb 1

Project Member
Status: Started (was: Accepted)
Started working on the reimplementation of the Project list based on Lucene.
See the WIP change:

Comment 11 by, Feb 1

Project Member
Components: -GWT Backend

Comment 12 by, Feb 8

Labels: FixedIn-2.16.5
Status: Submitted (was: Started)

Sign in to add a comment