Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-34713

Progressively declining dropDatabase performance

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.6.3, 3.6.4
    • 3.6.9, 4.0.1, 4.1.1
    • Replication, Storage
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Storage NYC 2018-05-21, Storage NYC 2018-06-04, Storage NYC 2018-06-18

    Description

          for (var j = 0; j < 20; j++) {
              for (var i = 0; i < 1000; i++) {
                  db["c"+i].insert({})
              }
              t = new Date()
              db.dropDatabase()
              print(new Date() - t)
          }
      

      Time required for dropDatabase progressively increases on each iteration, for example, with a 1-node replica set:

      The performance also starts off worse than 3.4.10.

      Does not reproduce standalone.

      Attachments

        Issue Links

          Activity

            People

              geert.bosch@mongodb.com Geert Bosch
              bruce.lucas@mongodb.com Bruce Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: