Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-56

Remove "copy_database" helper method.

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 0.3.3
    • 0.4
    • None
    • None

    Description

      Probably not used, and it gets more and more difficult to support.

      "copy_database" without auth doesn't need a helper method, MotorDatabase's "command" method is sufficient. So that's one argument for dropping the helper method.

      "copy_database" with auth, however, requires special socket handling. This requirement for special socket handling complicates Motor's plan to support multiple async frameworks (MOTOR-40, MOTOR-41). Additionally, the server has added authentication features to copydb (SERVER-15684) which makes it harder to fully support from the driver.

      All evidence indicates that people don't use copy_database from drivers. If they need it, they can use PyMongo; PyMongo 2.8 will have a full copy_database implementation.

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: