diff --git a/models/mongodb/Product.php b/models/mongodb/Product.php index 1e31c9ff9..abc333f41 100644 --- a/models/mongodb/Product.php +++ b/models/mongodb/Product.php @@ -107,7 +107,7 @@ public static function create_index(){ ['category' => -1], ]; - $options = ['background' => true, 'socketTimeoutMS' => 300000]; + $options = ['background' => true]; foreach($indexs as $columns){ self::getCollection()->createIndex($columns,$options); } diff --git a/models/mongodb/cms/Article.php b/models/mongodb/cms/Article.php index bbb981cff..8e3ed5cd0 100644 --- a/models/mongodb/cms/Article.php +++ b/models/mongodb/cms/Article.php @@ -46,7 +46,7 @@ public static function create_index(){ ]; - $options = ['background' => true, 'socketTimeoutMS' => 300000]; + $options = ['background' => true]; foreach($indexs as $columns){ self::getCollection()->createIndex($columns,$options); } diff --git a/models/mongodb/cms/StaticBlock.php b/models/mongodb/cms/StaticBlock.php index 0cfad77f5..6e3795e7f 100644 --- a/models/mongodb/cms/StaticBlock.php +++ b/models/mongodb/cms/StaticBlock.php @@ -43,7 +43,7 @@ public static function create_index(){ ]; - $options = ['background' => true, 'socketTimeoutMS' => 300000]; + $options = ['background' => true]; foreach($indexs as $columns){ self::getCollection()->createIndex($columns,$options); } diff --git a/models/mongodb/customer/Newsletter.php b/models/mongodb/customer/Newsletter.php index 0c156e3cf..cd9bae76b 100644 --- a/models/mongodb/customer/Newsletter.php +++ b/models/mongodb/customer/Newsletter.php @@ -45,7 +45,7 @@ public static function create_index(){ ]; - $options = ['background' => true, 'socketTimeoutMS' => 300000]; + $options = ['background' => true]; foreach($indexs as $columns){ self::getCollection()->createIndex($columns,$options); } diff --git a/models/mongodb/product/Favorite.php b/models/mongodb/product/Favorite.php index 4ad3fb057..9ab2804b5 100644 --- a/models/mongodb/product/Favorite.php +++ b/models/mongodb/product/Favorite.php @@ -45,7 +45,7 @@ public static function create_index(){ ]; - $options = ['background' => true, 'socketTimeoutMS' => 300000]; + $options = ['background' => true]; foreach($indexs as $columns){ self::getCollection()->createIndex($columns,$options); } diff --git a/models/mongodb/product/Review.php b/models/mongodb/product/Review.php index c145cf477..ed1b05673 100644 --- a/models/mongodb/product/Review.php +++ b/models/mongodb/product/Review.php @@ -72,7 +72,7 @@ public static function create_index(){ ]; - $options = ['background' => true, 'socketTimeoutMS' => 300000]; + $options = ['background' => true]; foreach($indexs as $columns){ self::getCollection()->createIndex($columns,$options); } diff --git a/models/mongodb/url/UrlRewrite.php b/models/mongodb/url/UrlRewrite.php index 305fecf44..78442063b 100644 --- a/models/mongodb/url/UrlRewrite.php +++ b/models/mongodb/url/UrlRewrite.php @@ -43,7 +43,7 @@ public static function create_index(){ ]; - $options = ['background' => true, 'socketTimeoutMS' => 300000]; + $options = ['background' => true]; foreach($indexs as $columns){ self::getCollection()->createIndex($columns,$options); }