Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3)

Issue 5430050: Speed up two-sided view for CL with large number of files (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by M-A
Modified:
9 years, 3 months ago
CC:
codereview-discuss_googlegroups.com
Visibility:
Public.

Description

Speed up two-sided view for CL with large number of files. This puts an arbitrary limit of 1000 files on a CL but Rietveld barely works with 500 files in a CL.

Patch Set 1 #

Patch Set 2 : Do not use ancestor yet #

Patch Set 3 : Fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M codereview/views.py View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5
M-A
I did this CL to figure out if is is faster to filter on ancestor ...
12 years, 5 months ago (2011-11-22 21:11:17 UTC) #1
gvrpython
Hmm... will this still work in Andy's pure Django version of Rietveld? On Tue, Nov ...
12 years, 5 months ago (2011-11-22 21:26:58 UTC) #2
Andi Albrecht
LGTM On Tue, Nov 22, 2011 at 10:26 PM, Guido van Rossum <guido@python.org> wrote: > ...
12 years, 5 months ago (2011-11-23 07:26:31 UTC) #3
M-A
Removed all the ancestor stuff, switched from GQL to a Query but beside that, left ...
12 years, 5 months ago (2011-11-23 16:16:45 UTC) #4
Andi Albrecht
12 years, 5 months ago (2011-11-23 18:46:09 UTC) #5
On Wed, Nov 23, 2011 at 5:16 PM,  <maruel@chromium.org> wrote:
> Removed all the ancestor stuff, switched from GQL to a Query but beside
> that, left the filtering the same.

Looks good.
The ancestor() query would be fine now for gae2django too.

>
> I guess .key() could be removed but it helps making sure it's not None.
>
> http://codereview.appspot.com/5430050/
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b