Uploaded image for project: 'Perl Driver'
  1. Perl Driver
  2. PERL-375

Add support for MaxTimeMS to find_one method

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: Perl driver
    • Labels:
      None

      Description

      The spec for MaxTimeMS in drivers says that drivers may implement MaxTimeMS for find_one. This was not done for the perl driver. We could add another parameter for cursor options like this:

      $coll->find_one( $query, $fields, { max_time_ms => 100 } );

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: