You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Jürgen Lorenz Simon (JIRA)" <ji...@apache.org> on 2011/07/07 15:08:16 UTC

[jira] [Created] (COUCHDB-1214) Weird replication: ~12k design document takes almost twice as long as ~7MB other documents to replicate

Weird replication: ~12k design document takes almost twice as long as ~7MB other documents to replicate
-------------------------------------------------------------------------------------------------------

                 Key: COUCHDB-1214
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1214
             Project: CouchDB
          Issue Type: Bug
          Components: Replication
    Affects Versions: 0.11.2
         Environment: Virtual server.
            Reporter: Jürgen Lorenz Simon


The replication is filtered in each case. The design document in question is about 12k big, the overall size of the DB (disk_size) is about 6.8MB. The replication of nothing but the design document takes about 48 Seconds, the replication of the entire rest 28 Seconds. 

The two filters used look like this:

designs: "function( doc, req ) { return doc._id.search(/_design/) >= 0; }"
attachments: "function( doc, req ) { if (doc.docType == "attachment" || doc.docType == "article" || doc._deleted) { return true; } }"



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (COUCHDB-1214) Weird replication: ~12k design document takes almost twice as long as ~7MB other documents to replicate

Posted by "Jürgen Lorenz Simon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jürgen Lorenz Simon updated COUCHDB-1214:
-----------------------------------------

    Description: 
The replication is filtered in each case. The design document in question is about 12k big, the overall size of the DB (disk_size) is about 6.8MB. The replication of nothing but the design document takes about 48 Seconds, the replication of the entire rest 28 Seconds. 

The two filters used look like this:

designs: "function( doc, req ) { return doc._id.search(/_design/) >= 0; }"
attachments: "function( doc, req ) { if (doc.docType == "attachment" || doc.docType == "article" || doc._deleted) { return true; } }"


The version in the ticket was the server couch (source). The target couchdbs executing the pull-replication were 1.1.1 and 1.0.2 (same result) running on various hardware (Dell Laptop or iMac).


  was:
The replication is filtered in each case. The design document in question is about 12k big, the overall size of the DB (disk_size) is about 6.8MB. The replication of nothing but the design document takes about 48 Seconds, the replication of the entire rest 28 Seconds. 

The two filters used look like this:

designs: "function( doc, req ) { return doc._id.search(/_design/) >= 0; }"
attachments: "function( doc, req ) { if (doc.docType == "attachment" || doc.docType == "article" || doc._deleted) { return true; } }"




> Weird replication: ~12k design document takes almost twice as long as ~7MB other documents to replicate
> -------------------------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-1214
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1214
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Replication
>    Affects Versions: 0.11.2
>         Environment: Virtual server.
>            Reporter: Jürgen Lorenz Simon
>         Attachments: Testcase Replication.zip
>
>
> The replication is filtered in each case. The design document in question is about 12k big, the overall size of the DB (disk_size) is about 6.8MB. The replication of nothing but the design document takes about 48 Seconds, the replication of the entire rest 28 Seconds. 
> The two filters used look like this:
> designs: "function( doc, req ) { return doc._id.search(/_design/) >= 0; }"
> attachments: "function( doc, req ) { if (doc.docType == "attachment" || doc.docType == "article" || doc._deleted) { return true; } }"
> The version in the ticket was the server couch (source). The target couchdbs executing the pull-replication were 1.1.1 and 1.0.2 (same result) running on various hardware (Dell Laptop or iMac).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Closed] (COUCHDB-1214) Weird replication: ~12k design document takes almost twice as long as ~7MB other documents to replicate

Posted by "Randall Leeds (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Randall Leeds closed COUCHDB-1214.
----------------------------------


> Weird replication: ~12k design document takes almost twice as long as ~7MB other documents to replicate
> -------------------------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-1214
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1214
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Replication
>    Affects Versions: 0.11.2
>         Environment: Virtual server.
>            Reporter: Jürgen Lorenz Simon
>         Attachments: Testcase Replication.zip
>
>
> The replication is filtered in each case. The design document in question is about 12k big, the overall size of the DB (disk_size) is about 6.8MB. The replication of nothing but the design document takes about 48 Seconds, the replication of the entire rest 28 Seconds. 
> The two filters used look like this:
> designs: "function( doc, req ) { return doc._id.search(/_design/) >= 0; }"
> attachments: "function( doc, req ) { if (doc.docType == "attachment" || doc.docType == "article" || doc._deleted) { return true; } }"
> The version in the ticket was the server couch (source). The target couchdbs executing the pull-replication were 1.1.1 and 1.0.2 (same result) running on various hardware (Dell Laptop or iMac).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (COUCHDB-1214) Weird replication: ~12k design document takes almost twice as long as ~7MB other documents to replicate

Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13061312#comment-13061312 ] 

Robert Newson commented on COUCHDB-1214:
----------------------------------------

how does this affect 0.11.2?

> Weird replication: ~12k design document takes almost twice as long as ~7MB other documents to replicate
> -------------------------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-1214
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1214
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Replication
>    Affects Versions: 0.11.2
>         Environment: Virtual server.
>            Reporter: Jürgen Lorenz Simon
>         Attachments: Testcase Replication.zip
>
>
> The replication is filtered in each case. The design document in question is about 12k big, the overall size of the DB (disk_size) is about 6.8MB. The replication of nothing but the design document takes about 48 Seconds, the replication of the entire rest 28 Seconds. 
> The two filters used look like this:
> designs: "function( doc, req ) { return doc._id.search(/_design/) >= 0; }"
> attachments: "function( doc, req ) { if (doc.docType == "attachment" || doc.docType == "article" || doc._deleted) { return true; } }"
> The version in the ticket was the server couch (source). The target couchdbs executing the pull-replication were 1.1.1 and 1.0.2 (same result) running on various hardware (Dell Laptop or iMac).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (COUCHDB-1214) Weird replication: ~12k design document takes almost twice as long as ~7MB other documents to replicate

Posted by "Jürgen Lorenz Simon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jürgen Lorenz Simon resolved COUCHDB-1214.
------------------------------------------

    Resolution: Not A Problem

The design document's size was fetched by doing a HEAD request on document. The head request does not return the complete size, attachments seem to be excluded.

> Weird replication: ~12k design document takes almost twice as long as ~7MB other documents to replicate
> -------------------------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-1214
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1214
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Replication
>    Affects Versions: 0.11.2
>         Environment: Virtual server.
>            Reporter: Jürgen Lorenz Simon
>         Attachments: Testcase Replication.zip
>
>
> The replication is filtered in each case. The design document in question is about 12k big, the overall size of the DB (disk_size) is about 6.8MB. The replication of nothing but the design document takes about 48 Seconds, the replication of the entire rest 28 Seconds. 
> The two filters used look like this:
> designs: "function( doc, req ) { return doc._id.search(/_design/) >= 0; }"
> attachments: "function( doc, req ) { if (doc.docType == "attachment" || doc.docType == "article" || doc._deleted) { return true; } }"
> The version in the ticket was the server couch (source). The target couchdbs executing the pull-replication were 1.1.1 and 1.0.2 (same result) running on various hardware (Dell Laptop or iMac).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira