Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1719

Mongodump reads each document in the view by default

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: mongodump
    • Labels:
      None
    • v3.4

      Hey,

      I created a view where some of the documents exceed "maximum document size". So when I run:

      mongodump -c=my-view -d=my-database
      

      I'm getting an error like:

      Failed: error counting my-database.my-view: Total size of documents in my-view matching { $match: { $and: [ { some_id: { $eq: "something" } }, {} ] } } exceeds maximum document size
      

      Why does mongodump iterates through each element in the view? Shouldn't it just create a metadata file as it described here https://jira.mongodb.org/browse/DOCS-8633 ?

      Thanks

            Assignee:
            william.banfield William Banfield
            Reporter:
            exAspArk exAspArk [X]
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: