Wednesday, 15 July 2015

mongodb background task -



mongodb background task -

if possible, i'd run find & remove query on non-indexed columns in "background", without disturbing other tasks or exhausting memory detriment of others.

for indexing, there background flag. can same appended find/remove tasks?

thanks tip

this not can utilize "background:true" for. perchance best way handle write script in background. script should run operation in little batches delay in between. in pseudo code do:

find 10 docs need update update 10 docs sleep goto first step.

you have experiment value sleep works. need realize documents updating need pulled memory, have @ to the lowest degree impact.

mongodb background

No comments:

Post a Comment