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.

Reply via email to