Couch Potato compiles your CouchDB mapreduces from local files to flattened, in-db mapreduces so you don't have to do it yourself.