Skip to content

Options "socketTimeoutMS" and "maxTimeMS" #510

@petr-buchin

Description

@petr-buchin

Legacy driver supports options "socketTimeoutMS" and "maxTimeMS" in method \MongoCollection::createIndex(): http://php.net/manual/ru/mongocollection.createindex.php

But I see that there is no such options in createIndexes command documentation and such options are not implemented in CreateIndexes operation in the MongoDB PHP Lib.

I also don't see this option in any of bulk write operations and in docs for MongoDB\Driver\BulkWrite.

So the question is:

  1. Does this extension support such options in createIndexes command?
  2. If extension does not support such options in this command (I beleive so), how to specify max time when creating index?
  3. How to specify max time for bulk write operations? Am I understanding this right:
  • socket timeout is specified once per connection (Manager or Client) and exception is thrown on socket timeout for any operation;
  • the WriteConcern's option wtimeout is the only way to specify max time for bulk writes. But this option is applicable only for w > 1.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions