I am currelying devoloping a program that read documents from mongo and write them in a file… something like this:
for doc in db.col.find(field=="bla"): file.write(doc)
my problem is that something can happen while doing this process (it gonna take a week to do all the writes), for example, a shutdown or network problem. my question is… is there something similar to journal for write operations to recover from a checkpoint? So i dont need to do all the write to file all over again.