Mongorestore Large Database

I was doing large database restore (500GB) with mongorestore, after it was about 90% done, by mistake I hit ctrl + c (I was trying to copy message), and it ended restore, now I have started restore again but its keep throwing error “continuing through error: E11000 duplicate key error collection:”, I know it will skip duplicate by default but I am not sure how long it will take? Should I wait or overwrite this restore using --drop?

As a guess it would probably be slightly faster to leave it. Although the restore has to read everything from disk again it does not have to write 90% of it back to the database, nor journal or checkpoint those writes. That is the theory anyway.

7hrs after your post, you’re probably done already.

1 Like