You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "ILYA (JIRA)" <ji...@apache.org> on 2015/01/22 16:38:35 UTC

[jira] [Commented] (COUCHDB-2516) Deduplicate attachements on compaction

    [ https://issues.apache.org/jira/browse/COUCHDB-2516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14287622#comment-14287622 ] 

ILYA commented on COUCHDB-2516:
-------------------------------

There is a very big problem with active size calculation for following use cases:
1) Document get updated after de-duplication
2) Document is deleted after de-duplication

Implementation of active size calculation for above case would require changing on disk format. One of the approaches could be to add shared_att_sizes field into full_doc_info record.

> Deduplicate attachements on compaction
> --------------------------------------
>
>                 Key: COUCHDB-2516
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2516
>             Project: CouchDB
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: Database Core
>            Reporter: ILYA
>
> Currently we copy all attachments to .compact file even if they've been copied already on compacting previous revision of the document.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)