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

Remove "copy_database" helper method.

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.4
    • Affects Version/s: 0.3.3
    • Component/s: None
    • None

      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.

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

              Created:
              Updated:
              Resolved: