Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2808

GridFS spec: Add performant "delete revisions by filename" feature - delete_by_name

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Component/s: GridFS
    • Needed
    • Hide

      Summary of necessary driver changes

      • Implementing the new method Bucket.delete_by_name(filename) or skip the test source/gridfs/tests/deleteByName.yml

      Commits for syncing spec/prose tests
      (and/or refer to an existing language POC if needed)

      Context for other referenced/linked tickets

      Show
      Summary of necessary driver changes Implementing the new method  Bucket.delete_by_name(filename) or skip the test source/gridfs/tests/deleteByName.yml Commits for syncing spec/prose tests (and/or refer to an existing language POC if needed) https://github.com/mongodb/specifications/commit/22f068a82e364184554c1162be3e5b651a37dbd9 Context for other referenced/linked tickets DRIVERS-2807
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-5794 Needs Triage
      CXX-3167 Needs Triage
      CSHARP-5398 Needs Triage
      GODRIVER-3416 Backlog
      JAVA-5689 Needs Triage
      NODE-6512 Needs Triage
      MOTOR-1407 Duplicate
      PYTHON-4947 Backlog
      RUBY-3587 Needs Triage
      RUST-2091 Backlog
      PHPLIB-1568 Fixed 1.21.0
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CDRIVER-5794 Needs Triage CXX-3167 Needs Triage CSHARP-5398 Needs Triage GODRIVER-3416 Backlog JAVA-5689 Needs Triage NODE-6512 Needs Triage MOTOR-1407 Duplicate PYTHON-4947 Backlog RUBY-3587 Needs Triage RUST-2091 Backlog PHPLIB-1568 Fixed 1.21.0

      Summary

      The spec doesn't provide an API to delete every revisions of a filename. Using the current API, the developer have to retrieve each revision and delete this files them one by one.
      The rename by filename API is necessary for PHP Stream Wrapper.

      Motivation

      Who is the affected end user?

      Applications that use a lot of revisions of the same filename.

      How does this affect the end user?

      Bad performance scaling when the number of revisions grows

      How likely is it that this problem or use case will occur?

      Edge case, maybe an incorrect usage of GridFS.

      If the problem does occur, what are the consequences and how severe are they?

      Degraded performances

      Is this issue urgent?

      No

      Is this ticket required by a downstream team?

      PHPLIB implementation of GridFS stream wrapper

      Is this ticket only for tests?

      No

      Acceptance Criteria

      Update the spec to give a performant way to delete all revisions of a filename

            Assignee:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Reporter:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Andreas Braun Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: