Skip to content

CouchbaseTemplate#findByView is always including documents in ViewResponse. [DATACOUCH-28] #343

Closed
@spring-projects-issues

Description

@spring-projects-issues

Maciej Zasada opened DATACOUCH-28 and commented

We have the couchbase view which does JSON transformation (removing unnecessary fields, etc). When using

org.springframework.data.couchbase.core.CouchbaseTemplate#findByView

we can't specify to not include whole documents in the ViewResponse. It seems that problematic code snippet is:

if (!query.willIncludeDocs()) {
  query.setIncludeDocs(true);
}

which will always end up with setting query.setIncludeDocs(true). It would be useful, if one could disable this option on demand, e.g. for performance reasons


Affects: 1.0 M1

Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently applytype: bugA general bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions