De-duplicate database names in SchemaManager::dropDatabases()

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Doctrine
    • None
    • PHP Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      The method SchemaManager::dropDatabases() loops on every collection to remove its database. But since collections are usually all in the same database, this executes the "dropDatabase" operation multiple times on the same database.

      This is not problematic since dropDatabase is idempotent, but this can be optimized by executing "dropDatabase" only once per database to drop.

              Assignee:
              Unassigned
              Reporter:
              Jérôme Tamarelle
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:

                  Estimated:
                  Original Estimate - 2 days, 4 hours
                  2d 4h
                  Remaining:
                  Remaining Estimate - 2 days, 4 hours
                  2d 4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified