-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
On Mongoid 4 / Moped 2 stable, I am seeing crazy performance issues when $orderby:
{ _id: 1 }is used on a where statement that is doing an $or and looking for a single record. With $orderby its 40 seconds, without it, the same query goes to 1ms.
I checked all of my code and I am not setting a default scope to order by _id anywhere.
- related to
-
MONGOID-4175 #last on a has_many relation does not return the last element
- Closed