You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "David Pilato (JIRA)" <ji...@apache.org> on 2011/08/27 16:25:37 UTC

[jira] [Created] (COUCHDB-1263) Filter attachements in _changes API

Filter attachements in _changes API
-----------------------------------

                 Key: COUCHDB-1263
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1263
             Project: CouchDB
          Issue Type: Improvement
          Components: HTTP Interface
    Affects Versions: 1.1
         Environment: All
            Reporter: David Pilato
            Priority: Minor


It could be useful to have a filter on attachements in _changes API.

A call like below (note the filter_attachements=true new option) :
http://localhost:5984/myindex/_changes?feed=continuous&heartbeat=10000&include_docs=true&filter_attachements=true
will remove the _attachments field for each response.

A JIRA seems to talk of a more wild improvement https://issues.apache.org/jira/browse/COUCHDB-390, but I would like to have a really easier way for attachements.

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

        

[jira] [Closed] (COUCHDB-1263) Filter attachements in _changes API

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

Jan Lehnardt closed COUCHDB-1263.
---------------------------------

    Resolution: Won't Fix

done :)

> Filter attachements in _changes API
> -----------------------------------
>
>                 Key: COUCHDB-1263
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1263
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 1.1
>         Environment: All
>            Reporter: David Pilato
>            Priority: Minor
>              Labels: api-change, changes
>
> It could be useful to have a filter on attachements in _changes API.
> A call like below (note the filter_attachements=true new option) :
> http://localhost:5984/myindex/_changes?feed=continuous&heartbeat=10000&include_docs=true&filter_attachements=true
> will remove the _attachments field for each response.
> A JIRA seems to talk of a more wild improvement https://issues.apache.org/jira/browse/COUCHDB-390, but I would like to have a really easier way for attachements.

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

        

[jira] [Commented] (COUCHDB-1263) Filter attachements in _changes API

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

Randall Leeds commented on COUCHDB-1263:
----------------------------------------

Can you explain briefly why this it is the client that doesn't care can't just discard the _attachments field themselves? What is the use case?

> Filter attachements in _changes API
> -----------------------------------
>
>                 Key: COUCHDB-1263
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1263
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 1.1
>         Environment: All
>            Reporter: David Pilato
>            Priority: Minor
>              Labels: api-change, changes
>
> It could be useful to have a filter on attachements in _changes API.
> A call like below (note the filter_attachements=true new option) :
> http://localhost:5984/myindex/_changes?feed=continuous&heartbeat=10000&include_docs=true&filter_attachements=true
> will remove the _attachments field for each response.
> A JIRA seems to talk of a more wild improvement https://issues.apache.org/jira/browse/COUCHDB-390, but I would like to have a really easier way for attachements.

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

        

[jira] [Commented] (COUCHDB-1263) Filter attachements in _changes API

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

David Pilato commented on COUCHDB-1263:
---------------------------------------

Sure.

I'm working on the Elastic Search river. I add an option to discard _attachements on client side.
But I was wondering if it could be a nice idea to have it on the server side.

At first, I thought that the _changes API was giving all fields (and the attachment content itself) with the include_doc=true option. But as far as I can see, _changes API provides only meta informations about attachments, not the attachment itself.
So my improvement doesn't really improve something (I mean in term of speed and data transfert size).

I think we can close this issue as a "won't be fix" issue...

> Filter attachements in _changes API
> -----------------------------------
>
>                 Key: COUCHDB-1263
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1263
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 1.1
>         Environment: All
>            Reporter: David Pilato
>            Priority: Minor
>              Labels: api-change, changes
>
> It could be useful to have a filter on attachements in _changes API.
> A call like below (note the filter_attachements=true new option) :
> http://localhost:5984/myindex/_changes?feed=continuous&heartbeat=10000&include_docs=true&filter_attachements=true
> will remove the _attachments field for each response.
> A JIRA seems to talk of a more wild improvement https://issues.apache.org/jira/browse/COUCHDB-390, but I would like to have a really easier way for attachements.

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