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

Use the count command instead of collStats to implement estimatedDocumentCount

    • Needed
    • Hide

      The count command has been added to API version 1 for 6.0. With this change, the estimatedDocumentCount drivers helper can be changed to use the count command for versions 6.0.0+, as we previously the case for versions < 5.0.0.

      This change would allow the estimatedDocumentCount helper to return a count for non-materialized views.

      Show
      The count command has been added to API version 1 for 6.0. With this change, the estimatedDocumentCount drivers helper can be changed to use the count command for versions 6.0.0+, as we previously the case for versions < 5.0.0. This change would allow the estimatedDocumentCount helper to return a count for non-materialized views.
    • Hide

      Drivers should update their estimatedDocumentCount implementations to use the count command, regardless of the wire version of the connected server. The unified CRUD tests, legacy retryable reads tests, Atlas Data Lake tests, and the versioned API spec tests will need to be synced to mongodb/specifications@021cbc8. Lastly, the "Count API Details" section of the CRUD spec includes some documentation and release notes requirements that drivers will need to adhere to.

      Show
      Drivers should update their estimatedDocumentCount implementations to use the count command, regardless of the wire version of the connected server. The unified CRUD tests, legacy retryable reads tests, Atlas Data Lake tests, and the versioned API spec tests will need to be synced to mongodb/specifications@021cbc8 . Lastly, the "Count API Details" section of the CRUD spec includes some documentation and release notes requirements that drivers will need to adhere to.
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-4309 Fixed 1.22.0, 1.22.0-beta0
      CXX-2464 Fixed 3.7.0
      CSHARP-4095 Fixed 2.16.0
      GODRIVER-2331 Done 1.10.0, 1.10.0-beta1
      JAVA-4530 Fixed 4.7.0
      NODE-4079 Done 4.7.0
      MOTOR-908 Duplicate
      PYTHON-3167 Fixed 4.2
      PHPLIB-810 Fixed 1.13.0-beta1, 1.13.0
      RUBY-2922 Fixed 2.18.0
      RUST-1216 Fixed 2.3.0
      SWIFT-1515 Fixed 1.4.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-4309 Fixed 1.22.0, 1.22.0-beta0 CXX-2464 Fixed 3.7.0 CSHARP-4095 Fixed 2.16.0 GODRIVER-2331 Done 1.10.0, 1.10.0-beta1 JAVA-4530 Fixed 4.7.0 NODE-4079 Done 4.7.0 MOTOR-908 Duplicate PYTHON-3167 Fixed 4.2 PHPLIB-810 Fixed 1.13.0-beta1, 1.13.0 RUBY-2922 Fixed 2.18.0 RUST-1216 Fixed 2.3.0 SWIFT-1515 Fixed 1.4.0

      TBD pending decisions on SERVER-63850

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            alexander.golin@mongodb.com Alexander Golin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: