Store leaves in _attachments for smaller doc, better view performance
Bug #707732 reported by
Jason Gerard DeRose
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.
Changed in dmedia: | |
status: | In Progress → Fix Committed |
Changed in dmedia: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.