Dear Wiki user, You have subscribed to a wiki page or wiki
category on "Couchdb Wiki" for change notification. The "FUQ"
page has been changed by DaveCottlehuber: Comment: reducing the
number of FUQups == Views == 1. In a view, why should I not
{{{emit(key,doc)}}} ? + The key point here is that by emitting
{{{,doc}}} you are duplicating the document which is already
present in the database (a .couch file), and including it in the
results of the view (a different .couch file, with similar
structure). This is the same as having a SQL Index that includes
the original table, instead of using a foreign key. + The same
effect can be acheived by using {{{emit(key,null)}}} and
?include_docs=true with the view request. This approach has the
benefit of not duplicating the document data in the view index,
which reduces the disk space consumed by the view. On the other
hand, the file access pattern is slightly more expensive for
CouchDB. It is usually a premature optimization to include the
document in the view. As alway