couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Truemper <>
Subject Re: Some questions on large attachments
Date Tue, 12 Apr 2011 14:10:53 GMT

> Right now I added a field to the podcast doc which holds the mediadoc._id if
> this field is empty i have to create the mediadoc. Now i can check if the
> mediadoc exists and doesn't have an attachment ->  i have to download the
> file.
You could also write a view emitting all mediadocs that don't have an 
attachment. If you query the view with the mediadoc id and get an empty 
result, you have to download it.

View raw message