couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Pilato (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1263) Filter attachements in _changes API
Date Sun, 28 Aug 2011 20:50:37 GMT

    [ 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

        

Mime
View raw message