Progressively declining dropDatabase performance

XMLWordPrintableJSON

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

          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
            Reporter:
            Bruce Lucas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved: