Hi,

There's a good answer there from 2 days ago that correctly points out that to 
achieve the "If any one unit has been tested more than once, only measurement 
results from the first test should be included." requires a different document 
model than the one in your post. Specifically, use one document for the set of 
measurements and then you can emit just the latest one.

B.

On 16 Oct 2013, at 11:40, Fredrik Karlsson <[email protected]> wrote:

> Hi everyone! 
> 
> I posted this question on SO but haven't got much attention yet. Hope the 
> title isn't misleading. I would be very grateful if any CouchDB experts could 
> help me out! The problem I'm having is the only thing stopping me from 
> proceeding forwards with CouchDB's awesome featureset (the replication and 
> the changes feed is for me in this case a real dealmaker and I haven't found 
> any viable alternatives to it).
> 
> SO link: 
> http://stackoverflow.com/questions/19356563/most-recent-or-first-results-by-custom-id-with-couchdb
> 
> This is my first time posting to a mailing list, so I hope I'm doing it 
> right...
> 
> Regards,
> Fredrik
> 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to