Actions
Patch #33367
closedUse more efficient "exists?" instead of "first" in tests when checking the existence of rows
Description
When you check if any row exists, using exists?
that does not return ActiveRecord objects is more efficient than using first
.
The attached patch replaces first
with exists?
.
Files
Updated by Go MAEDA over 4 years ago
- Subject changed from Use more efficient "exists?" instead of "first” in tests when checking the existence of rows to Use more efficient "exists?" instead of "first" in tests when checking the existence of rows
Updated by Go MAEDA over 4 years ago
- Target version set to 4.2.0
Setting the target version to 4.2.0.
Updated by Go MAEDA over 4 years ago
- Status changed from New to Closed
- Assignee set to Go MAEDA
Committed the patch.
Actions