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

Remove "copy_database" helper method.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 0.3.3
    • Fix Version/s: 0.4
    • Component/s: None
    • Labels:
      None
    • # Replies:
      2
    • Last comment by Customer:
      true

      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

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                4 years, 4 weeks, 3 days ago
                Date of 1st Reply: