How do I do the SQL equivalent of "DISTINCT" in CouchDB?
Posted
by Blaine LaFreniere
on Stack Overflow
See other posts from Stack Overflow
or by Blaine LaFreniere
Published on 2010-03-28T20:14:42Z
Indexed on
2010/03/28
20:33 UTC
Read the original article
Hit count: 326
couchdb
I have a bunch of MP3 metadata in couchDB. I want to return every album that is in the MP3 metadata, but no duplicates.
A typical document looks like this:
{
"_id": "005e16a055ba78589695c583fbcdf7e26064df98",
"_rev": "2-87aa12c52ee0a406084b09eca6116804",
"name": "Fifty-Fifty Clown",
"number": 15,
"artist": "Cocteau Twins",
"bitrate": 320,
"album": "Stars and Topsoil: A Collection (1982-1990)",
"path": "Cocteau Twins/Stars and Topsoil: A Collection (1982-1990)/15 - Fifty-Fifty Clown.mp3",
"year": 0,
"genre": "Shoegaze"
}
© Stack Overflow or respective owner