Skip to content
Snippets Groups Projects
Commit eaed6eeb authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Explicitly disable reduce function for CouchDbCrudRepository.findAll

parent c8027d05
No related merge requests found
...@@ -72,7 +72,7 @@ abstract class CouchDbCrudRepository<T extends Entity> extends CouchDbRepository ...@@ -72,7 +72,7 @@ abstract class CouchDbCrudRepository<T extends Entity> extends CouchDbRepository
@Override @Override
public Iterable<T> findAll() { public Iterable<T> findAll() {
return db.queryView(createQuery(countableAllViewName).includeDocs(true), type); return db.queryView(createQuery(countableAllViewName).includeDocs(true).reduce(false), type);
} }
@Override @Override
...@@ -83,7 +83,7 @@ abstract class CouchDbCrudRepository<T extends Entity> extends CouchDbRepository ...@@ -83,7 +83,7 @@ abstract class CouchDbCrudRepository<T extends Entity> extends CouchDbRepository
return db.queryView(createQuery(countableAllViewName) return db.queryView(createQuery(countableAllViewName)
.keys((Collection<String>) strings) .keys((Collection<String>) strings)
.includeDocs(true), .includeDocs(true).reduce(false),
type); type);
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment