-
Type: Task
-
Resolution: Done
-
Priority: Blocker - P1
-
Affects Version/s: None
-
Component/s: None
-
None
I tried to call #extras with $maxTimeMS, but it doesn't perform the query with that extra mongodb operator.
[1] pry(main)> Yoolk::Mongo::Listing.where(name: "1").extras("$maxTimeMS" => 10000) => #<Mongoid::Criteria selector: {"name"=>"1"} options: {"$maxTimeMS"=>10000} class: Yoolk::Mongo::Listing embedded: false> [2] pry(main)> Yoolk::Mongo::Listing.where(name: "1").extras("$maxTimeMS" => 10000).to_a
It takes ages to finish. What is the correct way to do?