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

Issue 6455: Storage and performance improvements (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
17 years, 8 months ago by JohnA
Modified:
16 years, 10 months ago
Base URL:
http://rietveld.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This patch contains storage and performance improvements to help scaling issues that I see with Chromium's Rietveld instance. I originally thought they could use the same checksum to accomplish their task, which proved unworkable, however this explains why they ended up being together :) Reuse base files when a copy already exists on the server. This cuts down on upload time, and more importantly, on storage space (Chromium's instance is using 100MB/week!). Don't keep recalculating the delta links each time an issue is shown. On an issue with double digit patchsets and files, we see DeadlineExceededError often. This caches the data once it's been calculated. On one medium sized issue, it now takes 0.5s instead of 3s to generate the issue page.

Patch Set 1 #

Patch Set 2 : update #

Patch Set 3 : update to not do multi-entity puts, which I saw problems with on chromium's instance #

Patch Set 4 : Take2: update to not do multi-entity puts, which I saw problems with on chromium's instance #

Patch Set 5 : update #

Patch Set 6 : update #

Patch Set 7 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -29 lines) Patch
M codereview/models.py View 1 2 3 4 5 6 2 chunks +7 lines, -2 lines 0 comments Download
M codereview/views.py View 1 2 3 4 5 6 8 chunks +96 lines, -8 lines 0 comments Download
M static/upload.py View 1 2 3 4 5 6 7 chunks +46 lines, -10 lines 0 comments Download
M templates/patchset.html View 1 2 3 4 5 6 1 chunk +4 lines, -9 lines 0 comments Download

Messages

Total messages: 6
JohnA
Whoever has time please have a look, thanks.
17 years, 8 months ago (2008-10-01 04:41:45 UTC) #1
Evan Martin
http://codereview.appspot.com/6455/diff/1018/1021 File codereview/models.py (right): http://codereview.appspot.com/6455/diff/1018/1021#newcode178 Line 178: checksum = db.TextProperty() Could you comment whether this ...
17 years, 8 months ago (2008-10-07 18:49:24 UTC) #2
JohnA
http://codereview.appspot.com/6455/diff/1018/1021 File codereview/models.py (right): http://codereview.appspot.com/6455/diff/1018/1021#newcode178 Line 178: checksum = db.TextProperty() On 2008/10/07 18:49:24, Evan Martin ...
17 years, 8 months ago (2008-10-07 21:15:39 UTC) #3
Andi Albrecht
http://codereview.appspot.com/6455/diff/1018/1021 File codereview/models.py (right): http://codereview.appspot.com/6455/diff/1018/1021#newcode206 Line 206: deltas = db.StringProperty() I wonder if it isn't ...
17 years, 8 months ago (2008-10-08 04:51:57 UTC) #4
JohnA
http://codereview.appspot.com/6455/diff/1018/1021 File codereview/models.py (right): http://codereview.appspot.com/6455/diff/1018/1021#newcode206 Line 206: deltas = db.StringProperty() On 2008/10/08 04:51:59, andi.albrecht wrote: ...
17 years, 8 months ago (2008-10-09 19:55:01 UTC) #5
Evan Martin
17 years, 8 months ago (2008-10-09 20:53:23 UTC) #6
This looks good to me (with the caveat that I don't really understand this
code).  Andi?

http://codereview.appspot.com/6455/diff/1018/1021
File codereview/models.py (right):

http://codereview.appspot.com/6455/diff/1018/1021#newcode178
Line 178: checksum = db.TextProperty()
On 2008/10/07 21:15:39, JohnA wrote:
> On 2008/10/07 18:49:24, Evan Martin wrote:
> > Could you comment whether this is a checksum of data or text?
> 
> This is a checksum on either, depending on the file type.

What I had meant was "could you add a comment indicating that?"  :)
Sign in to reply to this message.

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