couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Landry Soules <>
Subject Which view is better optimized ?
Date Tue, 22 Jul 2014 09:51:26 GMT

I have a simple users document containing fields such as gender, age and
last seen date.
I have to request these documents by age, or gender, or last seen date or a
mix of these criteria.
My question is : is it more efficient to create a single view containing
several emit, for example:
emit([doc.age, doc.gender, doc.lastSeen], doc);
emit([doc.gender, doc.age, doc.lastSeen], doc);
or to create several views, each of them containing one emit statement ?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message