Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Use #find_one to test #exists? #26

Merged
merged 1 commit into from
Aug 15, 2016
Merged

Use #find_one to test #exists? #26

merged 1 commit into from
Aug 15, 2016

Conversation

wfleming
Copy link
Contributor

In many cases (such as with a non-indexed selector), #find_one can be
notably faster than #count. In indexed cases, they should be about the
same.

cc @codeclimate/review

In many cases (such as with a non-indexed selector), `#find_one` can be
notably faster than `#count`. In indexed cases, they should be about the
same.
@gdiggs
Copy link

gdiggs commented Aug 15, 2016

LGTM

@wfleming wfleming merged commit e0484a8 into master Aug 15, 2016
@wfleming wfleming deleted the will/exists-find-one branch August 15, 2016 16:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants