Investigate whether has_many associations have #exists? method that returns whether any child documents exist and queries the database efficiently (i.e. does not retrieve the entire set of child documents)
Document the #exists? method on associations
Remove the #one method added in 4547
- is caused by
-
MONGOID-4547 Implement #take / #take! for AR feature parity
- Closed
- related to
-
MONGOID-4470 relations requests causes scanAndOrder queries
- Closed
-
MONGOID-4522 Make #any? not retrieve entire result set, like #exists?
- Closed
- links to