-
Notifications
You must be signed in to change notification settings - Fork 209
Closed
Labels
Description
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:
- Does this extension support such options in
createIndexes
command? - If extension does not support such options in this command (I beleive so), how to specify max time when creating index?
- How to specify max time for bulk write operations? Am I understanding this right:
- socket timeout is specified once per connection (
Manager
orClient
) and exception is thrown on socket timeout for any operation; - the
WriteConcern
's optionwtimeout
is the only way to specify max time for bulk writes. But this option is applicable only forw
> 1.
Thanks in advance.