view backend/couchdb/CouchApp/feedworm/views/preference/map.js @ 192:9d422fa90096

optimize marking feed entries as read: do not round trip to the database if the entry was already marked as read
author dirk
date Wed, 21 Sep 2011 13:23:25 +0200
parents a5bda54309ba
children
line wrap: on
line source

function(doc)
{
    if (doc.doctype == "preferences")
    {
        emit(doc._id, doc)
    }
}