couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Titus (JIRA)" <>
Subject [jira] [Created] (COUCHDB-1851) View binding to a document
Date Wed, 10 Jul 2013 06:05:48 GMT
Gary Titus created COUCHDB-1851:

             Summary: View binding to a document
                 Key: COUCHDB-1851
             Project: CouchDB
          Issue Type: New Feature
          Components: Database Core, JavaScript View Server
            Reporter: Gary Titus

Would like to request for a feature of creating a design document to be associated with only
one document.
Currently the view function function(doc) it iterates over all documents in the database and
one is required to check for either _id or create a type and check for it in the view.
In my use of couchdb i have lot of documents with large size and so running of a view takes
one and in some case couch crashes with following

[Tue, 25 Jun 2013 10:23:08 GMT] [error] [<0.24612.16>] {error_report,<0.34.0>,
[Tue, 25 Jun 2013 10:23:08 GMT] [error] [<0.24613.16>] ** Generic server <0.24613.16>
** Last message in was {'EXIT',<0.24612.16>,
** When Server state == {file,{file_descriptor,prim_file,{#Port<0.5462>,512}},
** Reason for termination == 
** {os_process_error,{exit_status,0}}

[Tue, 25 Jun 2013 10:23:08 GMT] [error] [<0.24613.16>] {error_report,<0.34.0>,
[Tue, 25 Jun 2013 10:23:08 GMT] [error] [<0.29460.2>] Uncaught server error: {os_process_error,

Now i agree that my document may be too big, and i know which one cause the problem it would
of immense help if instead of going through each document in the view function i can pass
the doc._id to the view function or the view is associated somehow with a document and runs
for only that document.

That will solve one of my issues in terms of view performance and memory requirements in the
case that is a large document but i have no view associated with it and i have smaller docs
that contain extracted content of the large doc on which i want to run views then if the view
is associated with a document it will never load the large document.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message