Mongodump reads each document in the view by default

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: mongodump
    • 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 (Inactive)
            Reporter:
            exAspArk [X]
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: