Refactor #10583
Run .uniq in database instead of in memory when possible
Description
Many parts of the code select rows (or columns) from the database and then run uniq in memory.
In most places, uniq can be run in the database (using `SELECT DISTINCT`) thereby improving performance.
Associated revisions
History
#1
Updated by The Foreman Bot almost 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2400 added
- Pull request deleted (
)
#2
Updated by Anonymous almost 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 0e1c537186622a77eb0db99fd532c2f46f6d4081.
#3
Updated by Dominic Cleal almost 8 years ago
- Legacy Backlogs Release (now unused) set to 35
Fixes #10583 - perform uniq in database instead of in memory when possible