Refactor #22091
Minor Active Record usage tweak
Description
Using a relation here can be a little faster since Active Record will
use an inequality comparison rather than an IN clause if 'types' has
only one element.
Associated revisions
History
#1
Updated by Tom Copeland over 4 years ago
- Tracker changed from Bug to Refactor
#2
Updated by Tom Copeland over 4 years ago
- Priority changed from Normal to Low
#3
Updated by Tom Copeland over 4 years ago
- % Done changed from 0 to 100
- Status changed from New to Closed
Applied in changeset ca79907536afbe594b35e6ceab68727311034429.
#4
Updated by Tomer Brisker over 4 years ago
- Legacy Backlogs Release (now unused) set to 296
- Assignee set to Tom Copeland
- Category set to Database
Fixes #22091 - Minor Active Record usage tweak (#5124)
Using a relation here can be a little faster since Active Record will
use an inequality comparison rather than an IN clause if 'types' has
only one element.