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

Progressively declining dropDatabase performance

    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Storage NYC 2018-05-21, Storage NYC 2018-06-04, Storage NYC 2018-06-18

          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.

        1. chart.png
          8 kB
          Bruce Lucas

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

              Created:
              Updated:
              Resolved: