Store leaves in _attachments for smaller doc, better view performance

Bug #707732 reported by Jason Gerard DeRose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dmedia
Fix Released
Critical
Jason Gerard DeRose

Bug Description

The leaves for the hash-list implemented in lp:704272 are currently base32-encoded and stored in the 'leaves' list in the document.

However, we will never be indexing based on the leave hashes, so this is a lot of unnecessary data getting sent to the view server, so the leaf hashes would be much better store in _attachments. Also, the leave values are never going to be used by, say, the HTML5 UI, so again, unnecessary data and json encoding/decoding.

So the leaves will be stored as an attachment. The binary digests will be concatenated together, which will keep the CouchDB database size a bit small also.

Related branches

Changed in dmedia:
status: In Progress → Fix Committed
Changed in dmedia:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.