[SERVER-10756] Why is my mongodb dump so slow? Created: 13/Sep/13 Updated: 10/Dec/14 Resolved: 16/Sep/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Performance, Querying |
| Affects Version/s: | 2.2.0-rc0 |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | dongweiming | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | performance | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Debian GNU/Linux 6.0 2.6.32-5-amd64 |
||
| Participants: |
| Description |
|
I wanted to backup my database, and then execute the following command: mongodump -d sandbox --out . But very, very slow。 I saw the mongodb log, such a large number of logs: The indexes is: > db.followbrand_flwrs.getIndexes() , , > db.followbrand_flwrs.count() |
| Comments |
| Comment by Daniel Pasette (Inactive) [ 16/Sep/13 ] |
|
mongodump scans your entire collection. if the data is being paged in from disk, that can be a costly operation. Check iostat to see if you are io bound. This project is for bugs or features, this is more of a support request, so probably should go to stackoverflow or google groups. https://groups.google.com/forum/#!forum/mongodb-user |